Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Alter database into Recovery mode Sql Server

Posted on 2014-09-05
6
Medium Priority
?
344 Views
Last Modified: 2014-09-05
Hello ,

I have a 2 sql servers one on site and the other offsite , they are both currently at the same state as both been restored with same bak file. I want to be able to on the onsite database make some transactions then take a Log File Backup and the use that TRN file to restore on the other site. If the database is in NonRecovery Mode , how do i get it into Recovery mode without having to to a restore of bak file?

Thanks
0
Comment
Question by:deanmachine333
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40305423
Just run the restore command with recovery option:
RESTORE DATABASE YourDatabaseNameHere  WITH RECOVERY

Open in new window

0
 

Author Comment

by:deanmachine333
ID: 40305430
Hello ,

thanks for response but the database is in RECOVERY MODE , i ment to get get the database in NORECOVERY MODE so i will be able to apply the Log File ( TRN ) - So need it non-operational

cheers
0
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 40305477
You can't do it without restoring a full backup first.
And because transactions are sequential you can't restore a transactional backup without restoring all the previous transactions backups that you may have.
0
How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

 

Author Comment

by:deanmachine333
ID: 40305487
Thanks for reply , ok was just checking there was not a way to get the database into NORECOVERY mode without doing a full backup.

cheers
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40305493
Not doing a full backup but restoring from a full backup. It's always the first step from a restore. And NORECOVERY is not the default option so you always need to add that option to the restore command.
0
 

Author Comment

by:deanmachine333
ID: 40305502
Hiya , yep i know how to do that i was looking for a way to put the database in nonrecovery with out doing restore from backup.

cheers
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 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