Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

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).

Almighty SQL Goddess

38200 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.

Go to Top of Page
  Previous Topic Topic Next 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.03 seconds. Powered By: Snitz Forums 2000