【文件属性】:
文件名称:清空数据库
文件大小:178B
文件格式:TXT
更新时间:2016-10-07 06:17:24
清空数据库
declare @tab varchar(20)
while exists(select * from sysobjects where xtype='u')
begin
select top 1 @tab=name from sysobjects where xtype='u'
exec('drop table '+@tab)
end