1、查询某个表被哪些存储过程调用
sql:
select distinct object_name(id) from syscomments where id in(select id from sysobjects where type ='P') and text like '%表名%'
oracle:
select distinct name from USER_SOURCE where type = 'PROCEDURE' and text like '%表名%'