1.查询某个表被哪些存储过程(以下简称 SP)使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P ...
.查询某个表被哪些存储过程 以下简称 SP 使用到: select distinct object name id from syscomments where id in select object id from sys.objects where type P and text like TableName .查找那些过程对该表做了更新操作: select distinct object ...
2016-11-04 09:27 0 3053 推荐指数:
1.查询某个表被哪些存储过程(以下简称 SP)使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P ...
1.查询某个表被哪些存储过程(以下简称 SP)使用 : select distinct object_name(id) fromsyscomments where id in (select object_id from sys.objects where type='P ...
1.查询某个表被哪些存储过程(以下简称 SP)使用 : select distinct object_name(id) fromsyscomments where id in (select object_id from sys.objects where type='P ...
工作中偶尔会出现:想用A数据表替换B数据表,然后把B数据表删除。但是,又不知道B数据表在哪个视图、存储过程、函数、触发器中使用过? 经过一番度娘,看到实现方法也不难,主要涉及两个系统表:sysobjects及syscomments。 1、先来复习一下sysobjects ...
--1.查询某个表被哪些存储过程使用到 : select distinct object_name(id) from syscomments where id in ( select object_id from sys.objects ...
select distinct object_name(id) from syscomments where id in (select id from sysobjects where t ...
--sql2008 查询某个表被那些存储过程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...
问题描述: 今天有个同事问到如何查询某个表被哪些存储过程调用, 然后同事说可以用SQL search查询,自己试了一下确实可以 sqlsearch下载说明地址:https://www.cnblogs.com/chuankang/p/8722369.html 方法一: 直接输入框写表名 ...