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:
parent
7705f7a956
commit
65b32ab930
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user