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()
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5