全部删除数据库所有存储过程:
declare @procName varchar(500)

declare cur cursor

for select [name] from sys.objects where type = 'p'

open cur

fetch next from cur into @procName

while @@fetch_status = 0

begin

if @procName <> 'DeleteAllProcedures'

exec('drop procedure ' + @procName)

fetch next from cur into @procName

end

close cur

deallocate cur

posted on 2013-07-01 14:26  清风暮雨  阅读(1316)  评论(0)    收藏  举报