需要将@DBName改为实际的数据库名 SQL Server 源码与演示: 源码出处 ALTER DATABASE @DBName SET RECOVERY SIMPLE WITH NO_WAITDBCC SHRINKFILE(@DBName_log, 1)ALTER DATABASE @DBName SET RECOVERY FULL WITH NO_WAITGO
需要将 @DBName 改为实际的数据库名 SQL Server源码与演示:源码出处
ALTER DATABASE @DBName SET RECOVERY SIMPLE WITH NO_WAIT DBCC SHRINKFILE(@DBName_log, 1) ALTER DATABASE @DBName SET RECOVERY FULL WITH NO_WAIT GO