刪除一個數據庫中的全部表

use 你想要刪除的數據庫名字sql GO 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
相關文章
相關標籤/搜索