select ‘truncate table ‘ + Name + ‘;‘ from sysobjects where xtype=‘U‘ order by name asc;--查询出指定库的 所有表,并且进行 truncate table 操作
常用sql 集合记录整理
原文:http://www.cnblogs.com/sandunban/p/7093196.html