Created
July 14, 2010 16:45
-
-
Save joshuaflanagan/475660 to your computer and use it in GitHub Desktop.
Restore a SQL Server database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER DATABASE mydbname SET SINGLE_USER With ROLLBACK IMMEDIATE | |
RESTORE DATABASE mydbname FROM DISK = 'c:\path\to\file.bak' WITH REPLACE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment