SQL Server设置数据库为自动收缩

USE [master]
GO
ALTER DATABASE [Test] SET AUTO_SHRINK ON WITH NO_WAIT
GO

编程技巧