If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > .bak size increase each time you replace the .bak with new .bak ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-12, 09:51
navedjobs navedjobs is offline
Registered User
 
Join Date: Sep 2011
Posts: 35
.bak size increase each time you replace the .bak with new .bak ?

when ever i take backup of my database called bms from my application
while dong back up the back up ends up in replaceing the old backup copy of similar date but the size of .bak file increases each time it gets backed-up
so for eg
if you do back up no.1 size of .bak is 1.73
back up no.2 ends up in replacing previous .bak file and grows by 1.73*2 = whatever
why so , and how to control that ?
Reply With Quote
  #2 (permalink)  
Old 01-18-12, 11:58
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
The backups default to appending. If you were to run
Code:
restore headeronly from disk = 'your filename here
you would see entries for each backup taken. Add WITH INIT to the end of your backup command, and the backup will be overwritten.
Reply With Quote
  #3 (permalink)  
Old 01-18-12, 12:59
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Code:
BACKUP DATABASE [<dbname>] 
 	TO DISK = N'\\<fp>\<fn>.BAK' 	
	  WITH NOFORMAT, INIT,  NAME = N'<db Desc>', SKIP, NOREWIND, NOUNLOAD,  STATS = 10
GO
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On