如何查看表被哪些存储过程调用

select distinct object_name(id) from syscomments where id in
(select id from sysobjects where type ='P') and text like '%表名 or 存储过程名%'

posted @ 2020-01-21 11:02  PD哥  阅读(834)  评论(0编辑  收藏  举报