存储过程系列之存储过程sql查询存储过程的使用
2023-09-14 08:57:07 时间
1.查询某个表被哪些存储过程(以下简称 SP)使用到 :
select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type ='P') and text like'%TableName%'
2.查找那些过程对该表做了更新操作:
select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type ='P') and text like'%update tablename%'
3.查询当前数据库中所有SP:
select name as 存储过程 from sysobjects where type = 'P'
SQL server 查询某个表在哪些存储过程(SP)中使用
1.查询某个表被哪些存储过程(以下简称 SP)使用到 :
select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type ='P') and text like'%TableName%'
2.查找那些过程对该表做了更新操作:
select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type ='P') and text like'%update tablename%'
相关文章
- 线性表--链式存储
- Sql Server 存储过程使用技巧
- sql serve存储过程
- MS SQL 批量给存储过程/函数授权
- 本地存储(LocalStorage、SessionStorage、Web SQL Database、Indexed DB)
- sql server 行转列存储过程
- [SQL] sql server中如何查看执行效率不高的语句
- 3>存储过程维护项目数据
- ORACLE 修改已有存储过程(plsql工具修改)
- SQL Server存储过程
- 【学亮IT手记】PL/SQL编程-存储过程
- Sql Server 存储过程基础
- PL/Sql 中创建、调试、调用存储过程
- 基于云存储服务构建应用的基础架构(图)
- 如何使用事物码 SAT 查找某个 SAPGUI 屏幕字段对应的后台存储数据库表的名称试读版
- oracle与sql server大批量存储过程可以替换部分
- Atiitt 使用java语言编写sql函数或存储过程
- SQL 2008存储图片和读取图片
- y14.第一章 Ceph企业级存储实战进阶 -- 对象存储RadosGW 使用(十四)
- Kubernetes集群HostPath的数据存储类型(三十三)
- 一文弄懂Hive基本架构和原理——Hive元数据信息存储在Hive MetaStore中,Hive 中所有的数据都存储在 HDFS 中,Hive 中数据模型:Table,External Table,Partition,Bucket;最后将一个SQL变成hadoop MapReduce作业
- MyBatis是一个支持普通SQL查询,存储过程和高级映射的优秀持久层框架
- 存储数据保护技术——快照