标签:
declare @sql varchar(8000)
while (select count(*) from sysobjects where type=‘U‘)>0
begin
SELECT @sql=‘drop table ‘ + name
FROM sysobjects
WHERE (type = ‘U‘)
ORDER BY ‘drop table ‘ + name
exec(@sql)
end
标签:
原文地址:http://www.cnblogs.com/siyechenmu/p/5558945.html