根据文本来检索存储过程

来源:互联网 发布:中国人口密度分布数据 编辑:程序博客网 时间:2024/04/29 21:10
ALTER procedure [dbo].[GetSPFNNameContainText]

 @text varchar(500)
)
as
    select name, text  
    from sysobjects o, syscomments s  
    where o.id = s.id  
    and text like '%'+@text+'%'  
    and (o.xtype = 'P'  or o.type='FN')