select b.name from syscomments a,sysobjects b where a.id=b.id and a.text LIKE '%table_a%'
注意:table_a 为表名,查出来的结果就是该表在存储过程中使用到的
实例:
select b.name from syscomments a,sysobjects b where a.id=b.id and a.text LIKE '%table_a%'
注意:table_a 为表名,查出来的结果就是该表在存储过程中使用到的
实例: