As a general rule, I like to keep my databases reasonably efficient by running a Maintenance Plan to Rebuild Indexes and Update Statistics. Generally do it weekly.
I was forgetting about FILL FACTOR, and the default for the instance is set to 0, which is what the Maint Plan job uses, so I changed the task to use a fill factor of 90% which I reckon is a nice compromise between reading and writing. i.e the setting reads "Change free space per page percentage to". I set it to 90. Should it have been 10% ?
When the task ran over the weekend, the database (and corresponding BAK) massively blew out in size from about 3.5Gb to 27Gb. On the bright side, the users did note a minor improvement in database responsiveness. Disk space is at a premium on this site, and throwing disk space into the server ain't going to fly.
I want to shrink the database back down to what it was, so I set the Maint task back to use the "reorganise pages to use the default amount of free space". The instance has a default index fill factor = 0.
So the maintenance ran overnight, and the database increased again from 27Gb to about 33Gb!! Running s SHRINKDATABSE would decrease the size from around 33Gb do 27Gb roughly, but ideally I need to get it back down to 3.5Gb.
Any advice appreciated
I was forgetting about FILL FACTOR, and the default for the instance is set to 0, which is what the Maint Plan job uses, so I changed the task to use a fill factor of 90% which I reckon is a nice compromise between reading and writing. i.e the setting reads "Change free space per page percentage to". I set it to 90. Should it have been 10% ?
When the task ran over the weekend, the database (and corresponding BAK) massively blew out in size from about 3.5Gb to 27Gb. On the bright side, the users did note a minor improvement in database responsiveness. Disk space is at a premium on this site, and throwing disk space into the server ain't going to fly.
I want to shrink the database back down to what it was, so I set the Maint task back to use the "reorganise pages to use the default amount of free space". The instance has a default index fill factor = 0.
So the maintenance ran overnight, and the database increased again from 27Gb to about 33Gb!! Running s SHRINKDATABSE would decrease the size from around 33Gb do 27Gb roughly, but ideally I need to get it back down to 3.5Gb.
Any advice appreciated