Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ced
Starting Member
2 Posts |
Posted - 2007-10-02 : 07:30:44
|
| I am testing a msde 2000 sp4 database. (would like to use it against sqlserver 2005 later)I need to turn the property for autogrowth on and check that an application alterts the user that it is on and then off and verify the user is altered that it was set off.I am not sure if this will work for mydb and mydblog--turn off autogrowthUSE masterGOALTER DATABASE mydb MODIFY FILE (NAME = mydb, FILEGROWTH = 0MB)GO--turn on autogrowthUSE masterGOALTER DATABASE mydb MODIFY FILE (NAME = mydb, FILEGROWTH = 10MB)GOUSE masterGOALTER DATABASE mydblog MODIFY FILE (NAME = mydblog, FILEGROWTH = 0MB)GO--turn on autogrowthUSE masterGOALTER DATABASE mydblog MODIFY FILE (NAME = mydblog, FILEGROWTH = 10MB)GOAlso I need to know the t-sql for setting unrestricted growth on and off but I can not seem to find that.Any help would be great.We can not use enterprise manager so I'm planning to use osql thru a cmd prompt.thanksced |
|
|
Kristen
Test
22859 Posts |
Posted - 2007-10-02 : 08:21:06
|
| I think what you are looking for is:MAXSIZE = UNLIMITEDKristen |
 |
|
|
ced
Starting Member
2 Posts |
Posted - 2007-10-02 : 15:58:27
|
| thanks for the helpced |
 |
|
|
|
|
|