标签:div sele 日志 with sel base 文件 col master
USE [master] GO ALTER DATABASE [数据库名] SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE [数据库名] SET RECOVERY SIMPLE GO USE [数据库名] GO DBCC SHRINKFILE (N‘[数据库日志文件名称]‘ , 0,TRUNCATEONLY) GO USE [master] GO ALTER DATABASE [数据库名] SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE [数据库名] SET RECOVERY FULL GO --上面的“数据库日志文件名称”用下面SQL的查询结果 --查询指定数据库的日志文件名称 USE [数据库名] GO SELECT name FROM SYS.database_files WHERE type_desc=‘LOG‘
USE [master] GO ALTER DATABASE [数据库名] SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE [数据库名] SET RECOVERY SIMPLE GO USE [数据库名] GO DBCC SHRINKFILE (N‘[数据库日志文件名称]‘ , 0,TRUNCATEONLY) GO USE [master] GO ALTER DATABASE [数据库名] SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE [数据库名] SET RECOVERY FULL GO --上面的“数据库日志文件名称”用下面SQL的查询结果--查询指定数据库的日志文件名称 USE [数据库名] GO SELECT name FROM SYS.database_files WHERE type_desc=‘LOG‘
标签:div sele 日志 with sel base 文件 col master
原文地址:https://www.cnblogs.com/lanyubaicl/p/12294750.html