Drop Table
Support Forum for database administrators and web based access to important newsgroups related to databasesI want to restore a backup copy of a database from the command line. Can this be done? Thanks, Tom.
Post Follow-up to this messageYou can use osql.exe - something like this: osql.exe -S MyServer -E -Q"restore database MyDB from ..." See osql and RESTORE in Books Online. Simon
Post Follow-up to this messageSimon Hayes wrote: > You can use osql.exe - something like this: > > osql.exe -S MyServer -E -Q"restore database MyDB from ..." > > See osql and RESTORE in Books Online. > > Simon Thanks for that. osql.exe -S MyServer -E -Q"RESTORE DATABASE MyDB FROM disk = '\\MyServer \my Backups\the backup'" Works great. Tom.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread