Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

BACKUP WITH NORECOVERY Expand / Collapse
Author
Message
Posted Thursday, October 7, 2010 11:41 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Sunday, August 17, 2014 11:59 PM
Points: 415, Visits: 1,584
CAN Any one clarify my doubt please,
What exactly BACKUP ......... WITH NORECOVERY will do Difference b/n
BACKUP... AND BACKUP...WITH NORECOVERY

thanks


Post #1001025
Posted Friday, October 8, 2010 2:20 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 9:44 AM
Points: 42,822, Visits: 35,953
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 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1001062
Posted Friday, October 8, 2010 10:44 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Sunday, August 17, 2014 11:59 PM
Points: 415, Visits: 1,584
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,


Post #1001674
Posted Saturday, October 9, 2010 2:07 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 9:44 AM
Points: 42,822, Visits: 35,953
SQL* (10/8/2010)
thanks for your reply, but i'm not able to understand what exactly it will do?[quote]

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

[quote]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 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1001682
Posted Saturday, October 9, 2010 10:42 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Tuesday, August 26, 2014 4:16 PM
Points: 4,389, Visits: 9,526
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
Problems are opportunites brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs
Post #1001732
Posted Saturday, October 9, 2010 11:29 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 3:40 AM
Points: 5,989, Visits: 12,925
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.


---------------------------------------------------------------------

Post #1001735
Posted Sunday, July 21, 2013 5:55 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, February 13, 2014 10:06 PM
Points: 16, Visits: 73
Hi all,
please give command for "backup with norecovery" option.
Post #1475816
Posted Sunday, July 21, 2013 11:25 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 10:11 AM
Points: 36,995, Visits: 31,516
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
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1475827
Posted Monday, July 22, 2013 3:10 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
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
Post #1475901
Posted Monday, July 22, 2013 3:11 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
Forgot to mention please post new questions in different thread .

Regards
Durai Nagarajan
Post #1475902
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse