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

2025年03月23日 09:46
有1个网友回答
网友(1):

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

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

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