dbTalk Databases Forums  

Reducing the initial size of the model database in SQL Sever 2005

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss Reducing the initial size of the model database in SQL Sever 2005 in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
stuppi
 
Posts: n/a

Default Reducing the initial size of the model database in SQL Sever 2005 - 02-19-2010 , 03:00 PM






I've noticed that after increasing the initial size of the model database it
cannot be reduced. I increased it from 3MB to 5MB and although I can later
specify a lower value, say back to 3MB, the change dosen't stick. I'm using
Management Studio on a 2005 default instance. Is this behavior by design?

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Reducing the initial size of the model database in SQL Sever 2005 - 02-19-2010 , 08:52 PM






stuppi (stuppi (AT) discussions (DOT) microsoft.com) writes:
Quote:
I've noticed that after increasing the initial size of the model
database it cannot be reduced. I increased it from 3MB to 5MB and
although I can later specify a lower value, say back to 3MB, the change
dosen't stick. I'm using Management Studio on a 2005 default instance.
Is this behavior by design?
To increase the size of a database you use ALTER DATABASE. But to shrink
a database, you use DBCC SHRINKFILE. (Or SHRINKFILE). Shrinking a database
is (or should be) a much less common operation.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.