日期:2014-05-18 浏览次数:20480 次
select object_name(s.object_id)存储过程名, definition from sys.sql_modules s inner join sys.procedures p on s.object_id=p.object_id where definition like '%select name, id from person%'
------解决方案--------------------
select a.name,b.text from sys.sysobjects a join syscomments b on (a.id = b.id) where a.type = 'p' and b.text like '%你要找的字符串%'