SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Restoring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

silas2
Yak Posting Veteran

United Kingdom
65 Posts

Posted - 08/18/2005 :  13:58:59  Show Profile  Reply with Quote
Can you restore a backup (bak) file to a different server? E.g. client gets server nicked, they have bak files, can I run a restore to my sql server?
I can see the with MOVE option, but I can't see how to attach (to the new server) if the database wasn't detached (from the nicked server).

tkizer
Almighty SQL Goddess

USA
35954 Posts

Posted - 08/18/2005 :  14:01:15  Show Profile  Visit tkizer's Homepage  Reply with Quote
Yes you can with both RESTORE DATABASE or sp_attach_db/sp_attach_single_file_db. You use the WITH MOVE option of the RESTORE command if the paths to the MDF and/or LDF will be different from the original server.

Tara
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000