清空数据库所有表数据

use 数据库名

go

exec sp_msforeachtable  @Command1 ='truncate table ?'

原文地址:https://www.cnblogs.com/zxhome/p/4726877.html