November 13, 2010 at 3:59 pm
I have a database with one mdf and one ldf. Is it possible to set the mdf file to an allocated size to avoid taking the hit when the database autogrows? I'd like to size the database a great deal larger than it is currently so autogrow doesn't trigger.
Thanks,
Ken
November 13, 2010 at 11:01 pm
Yes, you can specify the size as initial size of the file.
you can set it to a larger value, so it will pre-allocate specified size.
Vishal Gajjar
http://SqlAndMe.com
November 14, 2010 at 5:10 am
Use the following to pre size the primary data file
alter database MYDB modify file (name = MDFLogicalFileName, size = SizeInMBorGB)
e.g. size = 100MB or size = 100GB
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
November 14, 2010 at 3:38 pm
Thank you very much.
Ken
November 14, 2010 at 5:46 pm
{edit} Never mind...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply