日期:2014-05-18  浏览次数:20327 次

如何删除一批储存过程
我的数据库里面有800个储存过程,现在想删除一部分,
我的思路:那些不需要删除的储存过程的名字我这里有,大约150个,我把它导入一个表里面了叫hh
能不能成批删除那些不需要的储存过程

------解决方案--------------------
探讨
SQL code
use master

declare @sp as varchar(100)
while exists(select 1 from sysobjects where type='P' and name not like 'sp_%' and name not like 'xp_%' and name <> 'MS_sqlctrs_users')
begin
se……