1.使用如下语句直接新建查询:
exec sp_msforeachtable @Command1 ='truncate table ?';
2.数据库日志文件过大处理方法如下:
数据库上点右键-任务-收缩--选择收缩数据库 。