您的当前位置:首页 >IT科技类资讯 >删除数据库所有存储过程的SQL语句 正文

删除数据库所有存储过程的SQL语句

时间:2025-11-04 21:08:26 来源:网络整理编辑:IT科技类资讯

核心提示

复制 DECLARE c1 cursorforselectalter table [+object_name(parent_obj) +] drop co

删除数据库所有存储过程的SQL语句
删除数据复制 DECLARE c1 cursorforselectalter table [+object_name(parent_obj) +] drop constraint [+name+]; from sysobjects where xtype =Fopen c1 declare@c1varchar(8000) fetchnextfrom c1 into@c1while(@@fetch_status=0) beginexec(@c1) fetchnextfrom c1 into@c1endclose c1 deallocate c1 1.2.3.4.5.6.7.8.9.10.11.12.13.14.