USE [数据库名称]
GO
ALTER
DATABASE
数据库名称
SET
RECOVERY SIMPLE
WITH
NO_WAIT
GO
DBCC SHRINKFILE (N
'数据库名称_log'
, 400, TRUNCATEONLY)
GO
DBCC SHRINKDATABASE(N
'数据库名称'
)
GO
ALTER
DATABASE
数据库名称
SET
RECOVERY
full
WITH
NO_WAIT
GO
https://www.cnblogs.com/datazhang/p/5238677.html