select  size*8/1024 from sys.database_files 查询日志大小

数据库恢复模式为SIMPLE时,

use db
dbcc shrinkfile (db_LOG,10) 压缩数据库

相关文章: