sql server 最近执行语句统计查询分析

 

 

查询语句:

select * from (
SELECT    [RowNumber],DATEDIFF(second, StartTime, isnull(EndTime ,StartTime)) 执行时间      ,[StartTime]
      ,[EventClass]
      ,[TextData]
      ,[ApplicationName]
      ,[NTUserName]
      ,[LoginName]
      ,[CPU]
      ,[Reads]
      ,[Writes]
      ,[Duration]
      ,[ClientProcessID]
      ,[SPID]
      ,[EndTime]
      ,[BinaryData]
  FROM [master].[dbo].[无标题 - 2]
   ) t 
   order by  执行时间 desc

  

 

posted @ 2022-04-29 10:12  阿尔叶  阅读(68)  评论(0编辑  收藏  举报