how to shut down BACKUP APPEND mode?

  • Hi All,

    I got a job which runs every day this T-SQL code:

    BACKUP DATABASE [myDB] TO  DISK = N'f:\BACKUPSDaily\myBKUP.bak' WITH  NOINIT ,  NOUNLOAD ,  NAME = N'mybackup',  NOSKIP ,  STATS = 10,  NOFORMAT

    It runs just fine but in append Mode (the default one); the bak file is being taped every night, so I would like to overwrite it, in order it not to become huge after a few time, but I can't seem to find a clear way to do this.

    Any help or pointing would be appreciated!

    Cheers,

    Giovanni

    JI
  • Hi,

       Use With INIT keyword to overwrite the backup file instead of With NOINIT..

     

    [font="Verdana"]- Deepak[/font]

  • Thanks a lot!

    Giovanni

    JI

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply