SQLServer中通过脚本内容查找存储过程

select o.name,m.definition from sys.objects o
left outer join sys.sql_modules m on o.object_id = m.object_id
where m.definition like '%{此处为查找内容}%'

 

posted @ 2017-12-11 10:56  Vulper  阅读(1144)  评论(0编辑  收藏  举报