标签:where serve log rom pre weight sel from sim
--查询数据库日志文件 USE [test] --要清除的数据库名称 GO SELECT name FROM SYS.database_files WHERE type_desc=‘LOG‘ --清空日志文件 USE [test] --要清除的数据库名称 GO ALTER DATABASE [test] SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE [test] SET RECOVERY SIMPLE GO USE [test] GO --要清除的数据库日志文件 替换 ‘‘号里面的内容 DBCC SHRINKFILE (N‘test_log‘ , 0,TRUNCATEONLY) GO USE [test] GO ALTER DATABASE [test] SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE [test] SET RECOVERY FULL GO
标签:where serve log rom pre weight sel from sim
原文地址:https://www.cnblogs.com/lear/p/14122473.html