Created
January 22, 2020 16:35
-
-
Save JwanKhalaf/9bf20b72821e91e54e8a246671bad3ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sqlcmd -S localhost -U SA -Q "RESTORE FileListOnly (RESTORE FILELISTONLY FROM DISK = N'/opt/mssql/BejebejeDb2018-04-13.bak'), MOVE '2J8fz00d6chl' TO '/opt/mssql/2J8fz00d6chl.mdf', MOVE '2J8fz00d6chl_Log' TO '/opt/mssql/2J8fz00d6chl_log.ldf', NOUNLOAD, REPLACE, NORECOVERY, STATS =5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment