use 库名 dump transaction 库名 with no_log dbcc shrinkfile(2,0) /* 2 -> 要收缩的文件的fileid,对应sysfiles中的fileid。 0 -> 收缩到初始大小 */