BACKUP WITH NORECOVERY

  • CAN Any one clarify my doubt please,

    What exactly BACKUP ......... WITH NORECOVERY will do Difference b/n

    BACKUP... AND BACKUP...WITH NORECOVERY

    thanks

    🙂

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • 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,

    🙂

  • SQL* (10/8/2010)


    thanks for your reply, but i'm not able to understand what exactly it will do?

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • 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

  • 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.

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

  • Hi all,

    please give command for "backup with norecovery" option.

  • 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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • 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

  • Forgot to mention please post new questions in different thread .

    Regards
    Durai Nagarajan

  • Thanks for your reply

  • 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

  • backup log TEST2LOCATION to disk ='F:\backup\log.trn' with norecovery

  • 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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • 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