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:待搜索的文本内容
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:待搜索的文本内容