SQL在全部存储过程中搜索/查找指定关键词

在全部存储过程中搜索/查找指定关键词

--列出有关键词‘abc’的存储过程

select b.name, a.text
from dbo.syscomments a,
     dbo.sysobjects b
where a.id = b.id
  and b.xtype = 'p'
  and a.text like '%abc%'

搜索/查找带有某关键字的触发器

--列出有‘abc’提示的触发器

select b.name, a.text
from dbo.syscomments a,
     dbo.sysobjects b
where a.id = b.id
  and b.xtype = 'tr'
  and a.text like '%abc%'

 

本文作者:iHey

本文链接:https://www.cnblogs.com/iHey/p/16421899.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   iHey  阅读(516)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.