SQL Server搜索存储过程中的文本

1
2
3
4
5
6
7
8
9
10
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:待搜索的文本内容

 

本文作者:iHey

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

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

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