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 fromsyscomments where id in select object id from sys.objects where type P and text like TableName .查找那些过程对该表做了更新操作: select distinct object n ...
2019-06-21 16:41 0 646 推荐指数:
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) 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.查询某个表被哪些存储过程使用到 : 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 ...
工作中偶尔会出现:想用A数据表替换B数据表,然后把B数据表删除。但是,又不知道B数据表在哪个视图、存储过程、函数、触发器中使用过? 经过一番度娘,看到实现方法也不难,主要涉及两个系统表:sysobjects及syscomments。 1、先来复习一下sysobjects ...
--sql2008 查询某个表被那些存储过程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...
store procedure (存储过程) http://www.cnblogs.com/xiangzhong/p/5038338.html 调优的几个关键的步骤--sp_lock,sp_who http://blog.csdn.net/yenange/article ...