SQL Server一次性删除master数据库中的所有用户添加的表

use master;
go
sp_msforeachtable @command1="drop table ?"
go


select * from sys.tables where is_ms_shipped=0

猜你喜欢

转载自blog.csdn.net/qq_36279445/article/details/80117133