Solved

standby sql server 2005 significance and restore to active

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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to query LOCK_ESCALATION 4 42
Replace Dates in query 14 55
convert null in sql server 12 58
What Is an Error? 2 27
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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