SQL Server搜索存储过程中的文本

select b.name,TEXT

from [dbname].dbo.syscomments a, [dbname].dbo.sysobjects b

where a.id=b.id and b.xtype='p' and a.text like '%[text]%'
 

--[dbname]: 您要搜索的数据库名称

--text:待搜索的文本内容

 

posted @ 2022-02-19 17:42  iHey  阅读(83)  评论(0)    收藏  举报