Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab. Download now (direct download link)
Thank this author by sharing:
By Shashank Srivastava, 2015/05/11
This script is going to change the auto growth setting of database files of all databases except Master & Msdb by 100 MB. This script is very useful while performing the SQL RAP exercise.
If you want to change the auto growth size from 100 to some other value then just modify the filegrowth value in script at below location.
BEGIN
PRINT 'Changing AutoGrowth option for database:- '+ UPPER(@name)
SET @Query = 'ALTER DATABASE '+ @name +' MODIFY FILE (NAME = '+@vFileName+',FILEGROWTH = 100MB)'
EXECUTE(@Query) BEGIN
EXECUTE(@Query)
I am hopeful that this script is going to be very helpful to each one of you.
How can i determine (by calculations or other means ) the percentage of filegrowth for a newly creat...
One of the items we usually flag in reports is FILEGROWTH by percentage. It doesn't help that for m...
Hi all! I am interested in changing the filegrowth property of both my mdf and ldf on several hundr...
Latest database change script release should check for previous database change too