Backup and Restore
BACKUP DATABASE vinoth
TO DISK = 'D:\vinoth13102009.bak'
============================================
RESTORE DATABASE Team4uSQL2K_SRV6
FROM DISK = 'D:\Team4uSQL2K_SRV6.bak'
WITH MOVE 'e_Learning_Data' TO 'D:\mssql2005\databases\e_LearningSQL2K.mdf',
MOVE 'e_Learning_Log' TO 'D:\mssql2005\translogs\e_LearningSQL2Klog.ldf'
RESTORE FILELISTONLY FROM DISK = 'D:\e_LearningSQL2K.bak'
USE
EXEC sp_change_users_login 'update_one', '',''
Comments
Post a Comment