08 2021 档案
摘要:DECLARE @longrunningthreshold int SET @longrunningthreshold=60 ;WITH cte AS (SELECT [Session_id]=spid, [Sessioin_start_time]= (SELECT start_time FROM
阅读全文
摘要:SELECT s.session_id ,r.STATUS ,r.blocking_session_id AS 'blocked_by' ,r.wait_type ,r.wait_resource ,CONVERT(VARCHAR, DATEADD(ms, r.wait_time, 0), 8) A
阅读全文
摘要:IF OBJECT_ID('TEMPDB..#tmp')IS NOT NULL DROP TABLE #tmp create table #tmp(name nvarchar(100), rows int, reserved nvarchar(100), data nvarchar(100), in
阅读全文