sql

USE [master]
GO
ALTER DATABASE Auto_Click_System SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE Auto_Click_System SET RECOVERY SIMPLE   --简单模式
GO
USE Auto_Click_System 
GO
--crm50sp1_log 为数据库日志文件逻辑名
DBCC SHRINKFILE (N'Auto_Click_System_a_log' , 11, TRUNCATEONLY)
GO
USE [master]
GO
ALTER DATABASE Auto_Click_System SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE Auto_Click_System SET RECOVERY FULL  --还原为完全模式
GO

你可能感兴趣的:(.net,2014)