Please start any new threads on our new site at http://forums.sqlteam.com. 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
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 High Availability (2008)
 Copy Standby/Read-only database
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

songket
Starting Member

1 Posts

Posted - 11/11/2013 :  20:32:05  Show Profile  Reply with Quote
Hi,

warning: i'm newbie in this field

I have a Standby/Read-only database from log shipping (eg: LS_Database1) and would like to copy that Standby/Read-only database into read-write database in the same server for daily testing purpose.

I want to use backup and restore approach, but then the Task > Backup (button) is disable. I have tried the Task > Copy Database but result error at the last step Execute SQL Server Agent Job.

Thanks in advance.

djj55
Constraint Violating Yak Guru

USA
352 Posts

Posted - 11/12/2013 :  09:17:28  Show Profile  Reply with Quote
When a database is in Standby/Read-only you can look at the data (run a SELECT query) within the database but you would have to do a restore on the database. See: http://msdn.microsoft.com/en-us/library/ms176039.aspx however this breaks log shipping.



djj
Go to Top of Page

Prav4u
Starting Member

India
15 Posts

Posted - 11/17/2013 :  07:02:58  Show Profile  Reply with Quote
you can also take a backup from production server with copy_only option then restore that copy for testing purpose.

Praveen D'sa
MCITP - Database Administrator 2008
http://sqlerrors.wordpress.com
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