Solved

standby sql server 2005 significance and restore to active

Posted on 2008-10-16
5
657 Views
Last Modified: 2010-04-21
In sql server 2005 what is the significance of the database in standby mode and how to make it active
0
Comment
Question by:Greens8301
  • 2
  • 2
5 Comments
 
LVL 6

Assisted Solution

by:bcsql
bcsql earned 100 total points
ID: 22732087
Standby mode when restoring a database lest you apply trans log backups to the databases and leaves the database in a read only mode. Useful in logshipping when you want to read the database you are logshipping to say for reporting. Use the with recovery option when restoring a database when all trans logs have been applied and you want the database out of readonly mode.

http://msdn.microsoft.com/en-us/library/ms188223(SQL.90).aspx
http://msdn.microsoft.com/en-us/library/ms177429(SQL.90).aspx

0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 22732094
The stand by mode put your database in a read-only mode, storing all the uncommited transactions in your stand by file... if you want to make it active, you can take your last log backup and restore it using WITH RECOVERY

This is commonly used in log shipping
0
 

Author Comment

by:Greens8301
ID: 22732245
Is there a T-SQL command to make it active WITH RECOVERY option

Thanks
0
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 400 total points
ID: 22732331
RESTORE LOG YourDBName
FROM DISK = 'C:\YourLast_LogBackup_File.trn'
WITH RECOVERY
0
 

Author Closing Comment

by:Greens8301
ID: 31506840
Thanks got the quick reponse
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question