sqlserver 发布后,手动清除相关proc

--删除数据库发布后,发现还有很多相关的proc存在, 手动清除下!

SELECT 'drop proc dbo.'+name FROM sys.procedures
WHERE name LIKE 'sp_MSupd_%'
UNION ALL
SELECT 'drop proc dbo.'+name FROM sys.procedures
WHERE name LIKE 'sp_MSdel_%'
UNION ALL
SELECT 'drop proc dbo.'+name FROM sys.procedures
WHERE name LIKE 'sp_MSins_%'
go


你可能感兴趣的:(sqlserver)