MSSQL - changing minimum / startup sizes
Discussion
Hi,
quick question, is it possible to change the minimum size on databases in MSSQL? I've been googling for about 30mins now trying to find the answer, which appears to be "no".
There are a load of databases here with sizes of 225mb (the default creation sizes for scripts we use) yet are using less than 5MB each - we need to reclaim the space back for other projects but can't delete the DB's to do so...
any ideas? DBBC SHRINKDATABASE only gets us back to 225...
quick question, is it possible to change the minimum size on databases in MSSQL? I've been googling for about 30mins now trying to find the answer, which appears to be "no".
There are a load of databases here with sizes of 225mb (the default creation sizes for scripts we use) yet are using less than 5MB each - we need to reclaim the space back for other projects but can't delete the DB's to do so...
any ideas? DBBC SHRINKDATABASE only gets us back to 225...
selwonk said:
Have you tried:
DBCC SHRINKDATABASE ([database_Name], 5) TRUNCATEONLY
IIRC, this will shrink database_Name leaving 5% space free after shrinking and then releases the freed space to the OS
When I do that it the minimum it'll go to is the creation size (in this case 225mb with 221 mb free DBCC SHRINKDATABASE ([database_Name], 5) TRUNCATEONLY
IIRC, this will shrink database_Name leaving 5% space free after shrinking and then releases the freed space to the OS
)the transaction log has already been removed.
When the db is created from scripts it is automatically made to be 225mb - in reality we don't use more than 5mb usually hence needing to lower the original size rather than shrink what data we have...
editt: you crafty devil, deleting your post :P
When the db is created from scripts it is automatically made to be 225mb - in reality we don't use more than 5mb usually hence needing to lower the original size rather than shrink what data we have...
editt: you crafty devil, deleting your post :P
Edited by docevi1 on Monday 4th September 16:54
docevi1 said:
the transaction log has already been removed.
When the db is created from scripts it is automatically made to be 225mb - in reality we don't use more than 5mb usually hence needing to lower the original size rather than shrink what data we have...
editt: you crafty devil, deleting your post :P
Realised it was a load of rubbish... When the db is created from scripts it is automatically made to be 225mb - in reality we don't use more than 5mb usually hence needing to lower the original size rather than shrink what data we have...
editt: you crafty devil, deleting your post :P
Edited by docevi1 on Monday 4th September 16:54

selwonk said:
I owe you a pint! Thank you very much.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


