Torna al Thread
db.ConnectionString = "Data Source=localhost\SQLEXPRESS;Initial Catalog=master;Integrated Security=SSPI;"
db.Open()
SqlCmd.CommandText = "RESTORE DATABASE [statistica] FROM DISK = N'" & My.Application.Info.DirectoryPath & "\backup\statistica.bak' WITH FILE = 1, NOUNLOAD, REPLACE, STATS = 10"
SqlCmd.Connection = db
SqlCmd.CommandType = CommandType.Text
SqlCmd.ExecuteNonQuery()