Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Backups - Full/Differential

Status
Not open for further replies.

avarga82

Programmer
May 19, 2003
62
US
I'm implementing a very simple backup plan for a SQL database, and I was monkeying around with full backups. It seems that If I'm backing up to a hard disk, over the same file, that it doubles in size for every backup I run. I don't want the backup to add to the file, I want it to replace it. Obviously this will lead to storage size issues. Also, it's not an option (even though it would be best, I know), to move the backup to a different location or to a tape each time the backup runs.

So, finally, the question: How can I backup to the same file & location without appending to the existing file?

A point in the right direction would be very helpful. Thanks!
 
You need to use the WITH INIT command. That allows the file to be overwritten. WITH NOINIT causes an append. Default is WITH NOINIT.

-SQLBill



Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top