Fixed the script that turns off AutoShrink and Autoclose so that it can be run from the SQL Management Studio.

This commit is contained in:
John Jenko 2013-08-27 15:49:24 +00:00
parent 7705f7a956
commit 65b32ab930

View File

@ -7063,7 +7063,11 @@ ELSE PRINT 'TableFunction Creation: vefn_GetVersionFormatItems Error on Creation
GO GO
-- Turn off Auto Close and Auto Shrink -- Turn off Auto Close and Auto Shrink
ALTER DATABASE [{DBName}] SET AUTO_CLOSE OFF declare @CMD varchar(max)
set @CMD = 'ALTER DATABASE [' + db_name() +'] SET AUTO_CLOSE OFF'
exec(@CMD)
GO GO
ALTER DATABASE [{DBName}] SET AUTO_SHRINK OFF declare @CMD varchar(max)
set @CMD = 'ALTER DATABASE [' + db_name() +'] SET AUTO_SHRINK OFF'
exec(@CMD)
GO GO