Solved

Alter database into Recovery mode Sql Server

Posted on 2014-09-05
6
262 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
  • 3
  • 3
6 Comments
 
LVL 47

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 47

Accepted Solution

by:
Vitor Montalvão earned 500 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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 47

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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