方法 1、

         sys.dm_exec_qurey_stats 缓存计划中的每个查询语句在该视图中对应一行,

在从缓存删除计划时,也将从该视图中删除对应行。

        select sqlText.text,stt.creation_time,stt.total_logical_reads,stt.total_logical_writes,stt.total_physical_reads
        from sys.dm_exec_query_stats as stt cross apply sys.dm_exec_sql_text(stt.sql_handle) as sqlText
        go

       SQL Server  找出值得优化的语句

 

      

相关文章:

  • 2021-05-31
  • 2021-06-18
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-06-12
  • 2021-11-30
  • 2022-03-04
  • 2022-12-23
  • 2021-10-04
  • 2021-09-07
  • 2022-01-17
相关资源
相似解决方案