--删除数据库发布后,发现还有很多相关的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
查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/database/SQLServer/
时间: 2024-10-29 01:21:06