标签 表名 下的文章
SQL 查询某个表在哪些存储过程(SP)中被使用到
1.查询某个表被哪些存储过程(以下简称 SP)使用 :select distinct object_name(id) from syscomments where id in(select object_id from sys.objects where type='P') and text ...
1.查询某个表被哪些存储过程(以下简称 SP)使用 :select distinct object_name(id) from syscomments where id in(select object_id from sys.objects where type='P') and text ...