sqlserver快速查找所有存储过程中是否包含某字符

如题所述

select distinct object_name(id) as 存储过程名 from syscomments where text like'%要查的字符%'
and id in(select object_id from sys.objects where type='p')

这方法只能查未加密的存储

已加密的存储过程请先都用工具解密

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜