| Author |
Message |
Garymazzone
Joined: 06 Oct 2009 Posts: 6
|
Posted: Thu Oct 08, 2009 8:33 pm Post subject: Setting Autgrowth setting |
|
|
Is it possible to set the autogrowth option for database files using SQL Packager?
I have the Soruce database set to grow at 100M but the created database always gets set to 1M I need to set this to a larger size or to some percentage.
Gary |
|
| Back to top |
|
 |
Chris Auckland
Joined: 24 Oct 2006 Posts: 710 Location: Red Gate Software Ltd.
|
Posted: Mon Oct 12, 2009 3:51 pm Post subject: |
|
|
Thanks for your post.
There isn't a way to set this through the UI, but you can configure it if you output the project as a C# project. Or if you edit the SQL Packager code templates.
You can edit the string used to create the database in the PackageExecutor class.
An easy place to add the autogrowth settings is when the size of the databse gets set. If you search for SIZE= (about line 289) and then add the settings. e.g.
temp += ("SIZE=" + newDatabaseSize + ", MAXSIZE = UNLIMITED, FILEGROWTH = 10%, ");
I hope this is helpful. _________________ Chris |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group