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,
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.
PRINT 'Changing AutoGrowth option for database:- '+ UPPER(@name)
SET @Query = 'ALTER DATABASE '+ @name +' MODIFY FILE (NAME = '+@vFileName+',FILEGROWTH = 100MB)'
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...
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
need to change multiple databases on many servers