select name from sys.objects A where
EXISTS( select * from sys.sql_modules
where definition like ‘%{此处为查找内容}%‘
and A.object_id = object_id)
select name from sys.objects A where
EXISTS( select * from sys.sql_modules
where definition like ‘%{此处为查找内容}%‘
and A.object_id = object_id)
原文:http://www.cnblogs.com/Vulpers/p/8021993.html