问题遇到的现象和发生背景
sqlserver 怎么通过表找到那些存储过程调用过。(存储过程可能有部分已经WITH ENCRYPTION加密过)
问题相关代码,请勿粘贴截图
--表相关过程
------------------------------------------------------------------------------------------------
select distinct object_name(id) as 过程名称
from syscomments a
where exists (select * from sysobjects b where b.type='P' and a.id=b.id)
and text like '%UpdCostValueNewNoteItem%'
------------------------------------------------------------------------------------------------
execute sp_depends 'UpdCostValueNewNoteItem'
我的解答思路和尝试过的方法
以上方案失败了。有没有高效的方法找到表相关的过程。