Created
July 30, 2014 13:36
-
-
Save regisbsb/014de81a99ea8364d37f to your computer and use it in GitHub Desktop.
Restore 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
RESTORE FILELISTONLY | |
--RESTORE DATABASE test | |
FROM DISK = 'C:\Users\RegisBenedito\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\LocalSuite\pa_1000ingressos_backup_2014_05_20_040001_9459999.bak' | |
--WITH MOVE 'pa_1000ingressos.Data' TO 'C:\Users\RegisBenedito\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\LocalSuite\pa_1000ingressos.mdf', | |
--MOVE 'pa_1000ingressos.Log' TO 'C:\Users\RegisBenedito\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\LocalSuite\pa_1000ingressos.ldf', | |
--REPLACE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment