USE [master] GO ALTER DATABASE yourdatabase SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE yourdatabase SET RECOVERY SIMPLE GO USE yourdatabase GO DBCC SHRINKFILE (N'***log' , 11, TRUNCATEONLY) GO USE [master] GO ALTER DATABASE yourdatabase SET RECOVERY FULL WITH NO_WAIT GO ALTER DATABASE yourdatabase SET RECOVERY FULL GO
要先将数据库的模式改为单一模式
EXEC sp_configure 'show advanced options', 1 RECONFIGURE WITH OVERRIDE EXEC sp_configure 'Ole Automation Procedures', 1 RECONFIGURE WITH OVERRIDE 然后测试,如下