October 7, 2010 at 11:41 pm
CAN Any one clarify my doubt please,
What exactly BACKUP ......... WITH NORECOVERY will do Difference b/n
BACKUP... AND BACKUP...WITH NORECOVERY
thanks
🙂
October 8, 2010 at 2:20 am
Backup ... with norecovery will take a backup and then take the database into the restoring state. Typically used if taking a log backup prior to starting a restore.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 8, 2010 at 10:44 pm
hi,
thanks for your reply, but i'm not able to understand what exactly it will do? what are the advantages?. Do you have any specific links regarding this backup... with norecovery
thanks,
🙂
October 9, 2010 at 2:07 am
SQL* (10/8/2010)
It will backup the database and then change the database state from ONLINE to RESTORING. In that state, no one will be able to access the database at all
what are the advantages?.
If you're backing up the log prior to a restore, you don't want any more changes to be made after the last log backup. Hence, take the log backup with NoRecovery and no one will be able to access the DB.
Other than that, pretty much no uses.
Do you have any specific links regarding this backup... with norecovery
Did you try Books Online. I know there's stuff in there on this.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 9, 2010 at 10:42 am
Apparently, you can use this on a full backup also. This can be used when migrating a database to a new server.
Perform the full backup with norecovery - at the end of the backup, the database will not be available for use.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 9, 2010 at 11:29 am
Jeffrey Williams-493691 (10/9/2010)
Apparently, you can use this on a full backup also. This can be used when migrating a database to a new server.Perform the full backup with norecovery - at the end of the backup, the database will not be available for use.
thats a nice shout, I can see that as being a very good option when migrating databases.
@badra
The option is also used for the final log backup in logshipping when you want to swap the primary and secondary server roles.
---------------------------------------------------------------------
July 21, 2013 at 5:55 am
Hi all,
please give command for "backup with norecovery" option.
July 21, 2013 at 11:25 am
subahan.munthamadugu (7/21/2013)
Hi all,please give command for "backup with norecovery" option.
A better thing to do would be to lookup the command in Books Online (press the {f1} key to get there while in SSMS) and learn to structure it yourself. It's the only way to learn something well.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2013 at 3:10 am
subahan.munthamadugu (7/21/2013)
Hi all,please give command for "backup with norecovery" option.
Jeff gave a nice option but ill give another thought
right click database, select Backup, select backup type and try out different options and script it.
you have your script ready. MSSQL is a great friend.
Regards
Durai Nagarajan
July 22, 2013 at 3:11 am
Forgot to mention please post new questions in different thread .
Regards
Durai Nagarajan
July 22, 2013 at 6:38 pm
Thanks for your reply
July 23, 2013 at 8:09 am
Hi all,
backup with .... norecovery option
backup log TEST2LOCATION to disk ='F:\backup\log.trn' with norecovery but it is not possible to take full backup with norecovery option
Thanks,
subahan.M
July 23, 2013 at 8:10 am
backup log TEST2LOCATION to disk ='F:\backup\log.trn' with norecovery
July 23, 2013 at 8:19 am
Please note: 3 year old thread. New questions in a new thread please.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 23, 2013 at 8:27 am
ooooh, you edited it 🙂
---------------------------------------------------------------------
Viewing 15 posts - 1 through 15 (of 18 total)
You must be logged in to reply to this topic. Login to reply