执行下面2句查询即可

backup   log   数据库名   with   no_log
go
dbcc   shrinkdatabase(数据库名) go