查询存储过程中含某字段的所有存储过程:
select distinct name,text 
from report.dbo.syscomments a,report.dbo.sysobjects b    
where a.id=b.id    and b.xtype='p' and a.text like '%终审时间%'
查询某库中的所有存储过程:
SELECT * FROM SysObjects WHERE [xtype] = 'P'
查询某存储过程的内容:
EXEC Sp_HelpText '存储过程名'
posted on 2012-12-31 11:01  丢た壳の蜗牛  阅读(761)  评论(0编辑  收藏  举报