SQL2008清除数据库日志脚本

--数据库名称sjjhzx,日志文件名称ksoa_zuizhong_Log'

USE sjjhzx   
GO   
ALTER DATABASE sjjhzx SET RECOVERY SIMPLE WITH NO_WAIT   
GO   
ALTER DATABASE sjjhzx SET RECOVERY SIMPLE      
GO   
USE sjjhzx    
GO   
DBCC SHRINKFILE (N'ksoa_zuizhong_Log' , 11, TRUNCATEONLY)   
GO   
USE sjjhzx
GO
ALTER DATABASE sjjhzx SET RECOVERY FULL WITH NO_WAIT   
GO   
ALTER DATABASE sjjhzx SET RECOVERY FULL     
GO

上一篇:CodeForces - 103D Time to Raid Cowavans


下一篇:(Java 多线程系列)Java 线程池(Executor)