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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Saving a 'copy' of the db

Author  Topic 

timsmith
Starting Member

11 Posts

Posted - 2008-08-05 : 04:47:23
Hi,

I access the db by connecting to the server at a.b.c.d (IP address). From here, I get access to the live db. How can I make a copy (data + log files) of the db so that I can have access to it offline (i.e. I can access it using the 'attach' command?

thanks

timsmith
Starting Member

11 Posts

Posted - 2008-08-05 : 04:48:12
PS: Its MS SQL server 2005
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-05 : 05:34:58
Take a backup of the db and restore in your server

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

timsmith
Starting Member

11 Posts

Posted - 2008-08-05 : 05:52:44
Will taking the backup give me 'xyz_data' and 'xyz_log' files ?
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2008-08-05 : 05:54:55
Please do not affect the backup strategy if there is any...
Use Copy_Only
http://technet.microsoft.com/en-us/library/ms191495.aspx

Webfred
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-05 : 06:00:13
quote:
Originally posted by timsmith

Will taking the backup give me 'xyz_data' and 'xyz_log' files ?


Yes

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -