August 13, 2007 at 7:28 am
After Shrinking my DB I was expecting to cut down the size but it increased to 100mb, why is it so?
I tried using
DBCC
SHRINKDATABASE (SIRS_Dev)
DBCC SHRINKDATABASE (SIRS_Dev,10)
August 13, 2007 at 7:44 am
It's likely that the original size was set to 100mb when the DB was created. That the max it can reduce to it even if all data is deleted.
August 13, 2007 at 7:47 am
or is it something like there is no free space available to shrink any more.
August 13, 2007 at 8:01 am
Were you shrinking the entire db? (log and data)
Shrinking is not recommended for data files. It disturbs your indexes, creates fragmentation, etc. You shouldn't do this to data files at all.
Log files might grow because of some error or mis-run process, load, etc., so there are reasons where you need to shrink them, but they work differently. It's possible you need to create some transactions to get these to shrink since they only shrink from the back and there are "virtual log files" inside the main file.
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=26
August 14, 2007 at 4:54 pm
My bet is the db was shrunk to leave no free space, set to auto grow at some interval around 100MB, and someone inserted some data causing the database to grow after the shrink.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply