通过sys.dm_exec_requests看index缺失情况
来源:互联网 发布:mac iphoto 导出照片 编辑:程序博客网 时间:2024/06/05 15:15
查看耗时等信息:
SELECT der.session_id , --internal identifier for the running session der.status , --determines if the query is active or waiting der.start_time , --gives you an idea when the query started der.command , --the type of command involved der.database_id , --which database you're connected to der.user_id , --which login is running the command der.blocking_session_id , --session id of blocking session der.wait_type , -- what is the waiting session it waiting on der.wait_time , --how long has it been waiting der.last_wait_type , --what caused it to last wait der.cpu_time , --how much of the CPU has been used der.total_elapsed_time , --how long has the command been running der.reads , --has the command hit the disk for information der.writes , --how much information was written to the disk der.logical_reads --how many reads came out of memory FROMsys.dm_exec_requests AS der;
查看执行计划:
SELECTSUBSTRING(dest.text, ( der.statement_start_offset / 2 ) + 1, (der.statement_end_offset - der.statement_start_offset ) / 2 + 1)FROM sys.dm_exec_requests AS derCROSS APPLY sys.dm_exec_query_plan(der.plan_handle) AS deqpCROSS APPLY sys.dm_exec_sql_text(der.sql_handle) AS destWHERE der.session_id = 442;
- 通过sys.dm_exec_requests看index缺失情况
- SQL Server 系统表介绍:sys.dm_exec_requests
- z-index失效情况
- 通过指定数组里面的val值来删除元素-------在无法通过index的情况下
- SQL比较数据库之间数据表缺失情况
- MSCVP140d.dll 缺失找不到的一种情况
- MySQL的优化点总结---通过计算多种状态的百分比看MySQL的性能情况
- 缺失}
- Index Seek和Index Scan的区别以及适用情况
- z-index无论设置多高都不起作用情况
- z-index无效的几种情况
- 通过sql*plus,使用sys登录数据库
- 逆向病毒nvmini.sys--编译通过-
- 逆向fuck.sys--编译通过--源码
- 通过/sys/文件接口操作IO端口
- 通过/sys强制设备绑定驱动
- 通过脚看健康
- 通过servlet看Activity
- 在一个应用中启动另一个已安装的应用
- intent 使用
- 我的C#之旅
- 经典IT职业面试英语问答
- android中动态实现全屏和动态退出全屏方法
- 通过sys.dm_exec_requests看index缺失情况
- DM9000A基地址的确定
- 在grep ,awk ,sed 中的正则表达式
- Mapreduce中文处理策略
- 播放Android项目工程里的视频文件
- SO_REUSEADDR
- 视图实现圆角效果的三种方法及比较
- what is mean of /dev/null
- Blackberry:检查网咯类型是否CDMA