BACKUP AND RESTORE sintaxBACKUP DATABASE [dbname] TO DISK = N'D:\Database\Backup\20180102_dbname.bak' WITH COPY_ONLY, NOFORMAT, INIT, NAME = N'dbname-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10GOdeclare @backupSetId as intselect @backupSetId = position from msdb..backupset where database_name=N'dbname' and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name=N'dbname' )if @backupSetId is null begin raiserror(N'Verify failed. Ba
Leggi tutto il post...