Solved

standby sql server 2005 significance and restore to active

Posted on 2008-10-16
5
636 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now