dbTalk Databases Forums  

How to open standby database for read/write?

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss How to open standby database for read/write? in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lena
 
Posts: n/a

Default How to open standby database for read/write? - 07-19-2011 , 01:35 PM






Hello!
I have log shipping setup between primary sql server and standby
server. Both servers are MSSQL 2005 Enterprise.
What are the steps to open standby for read/write (I need it to make
primary at one point as a migration step)?

Thanks,
Lena

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How to open standby database for read/write? - 07-19-2011 , 04:13 PM






Lena (lenaglozman (AT) yahoo (DOT) com) writes:
Quote:
I have log shipping setup between primary sql server and standby
server. Both servers are MSSQL 2005 Enterprise.
What are the steps to open standby for read/write (I need it to make
primary at one point as a migration step)?
I have not actually tested this, but I would expect that the command is

RESTORE DATABASE db WITH RECOVERY


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.