08 2021 档案

摘要:DECLARE @longrunningthreshold int SET @longrunningthreshold=60 ;WITH cte AS (SELECT [Session_id]=spid, [Sessioin_start_time]= (SELECT start_time FROM 阅读全文
posted @ 2021-08-30 15:27 普贤 阅读(426) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-08-30 15:16 普贤 阅读(323) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-08-27 16:30 普贤 阅读(494) 评论(0) 推荐(0) 编辑