I have one database backup.
Now i want to install this backup to my friend's system.
His system does not contain SQL Server Management Studio.
How can i install my backup to his system, both are using SQL server 2005.
Statement 1: His system does not contain SQL server management studio
Statement 2: both are using SQL server 2005...
Doesn't the above two statements Contradict each other?
Update Please Ignore my Previous Answer
Run the following Command on Command Promt:
SqlCmd -E -S MyServer –Q “RESTORE DATABASE [MyDB]
FROM DISK=’D:BackupsMyDB.bak(Your backup Databse file)’”
I got the refrence from here
You will need some kind of SQL client on the other computer. As sqlcmd
is part of any SQL Server installation that can be used.
Then use the RESTORE
(SQL) statement to restore the backup.
Details about the RESTORE
statement can be found in the manual: http://msdn.microsoft.com/en-US/library/ms190372%28v=sql.90%29.aspx
You can use any SQL client that is able to connect to the SQL Server on the second computer to run that.
To make things easier, you could use your SSMS instance to let it generate the necessary SQL statement. Just pretend to restore the backup on your computer and use the "Generate Script" dropdown at the top of the dialog to see the SQL that would have been run by SSMS.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.