@@ -272,7 +272,7 @@ IF EXISTS
272272 1 / 0
273273 FROM sys .configurations AS c
274274 WHERE c .name = N ' blocked process threshold (s)'
275- AND CONVERT (int , c .value_in_use ) = 0
275+ AND CONVERT (integer , c .value_in_use ) = 0
276276)
277277AND @session_name NOT LIKE N ' system%health'
278278BEGIN
@@ -291,7 +291,7 @@ IF EXISTS
291291 1 / 0
292292 FROM sys .configurations AS c
293293 WHERE c .name = N ' blocked process threshold (s)'
294- AND CONVERT (int , c .value_in_use ) <> 5
294+ AND CONVERT (integer , c .value_in_use ) <> 5
295295)
296296AND @session_name NOT LIKE N ' system%health'
297297BEGIN
@@ -771,22 +771,22 @@ BEGIN
771771 contentious_object nvarchar(4000) NULL,
772772 activity varchar(8) NULL,
773773 blocking_tree varchar(8000) NULL,
774- spid int NULL,
775- ecid int NULL,
774+ spid integer NULL,
775+ ecid integer NULL,
776776 query_text xml NULL,
777777 wait_time_ms bigint NULL,
778778 status nvarchar(10) NULL,
779779 isolation_level nvarchar(50) NULL,
780780 lock_mode nvarchar(10) NULL,
781781 resource_owner_type nvarchar(256) NULL,
782- transaction_count int NULL,
782+ transaction_count integer NULL,
783783 transaction_name nvarchar(1024) NULL,
784784 last_transaction_started datetime2(7) NULL,
785785 last_transaction_completed datetime2(7) NULL,
786786 client_option_1 varchar(261) NULL,
787787 client_option_2 varchar(307) NULL,
788788 wait_resource nvarchar(1024) NULL,
789- priority int NULL,
789+ priority integer NULL,
790790 log_used bigint NULL,
791791 client_app nvarchar(256) NULL,
792792 host_name nvarchar(256) NULL,
@@ -1259,7 +1259,7 @@ BEGIN
12591259 isolation_level = bd .value (' (process/@isolationlevel)[1]' , ' nvarchar(50)' ),
12601260 log_used = bd .value (' (process/@logused)[1]' , ' bigint' ),
12611261 clientoption1 = bd .value (' (process/@clientoption1)[1]' , ' bigint' ),
1262- clientoption2 = bd .value (' (process/@clientoption1 )[1]' , ' bigint' ),
1262+ clientoption2 = bd .value (' (process/@clientoption2 )[1]' , ' bigint' ),
12631263 activity = CASE WHEN bd .exist (' //blocked-process-report/blocked-process' ) = 1 THEN ' blocked' END ,
12641264 blocked_process_report = bd .query (' .' )
12651265 INTO #blocked_sh
@@ -1316,7 +1316,7 @@ BEGIN
13161316 isolation_level = bg .value (' (process/@isolationlevel)[1]' , ' nvarchar(50)' ),
13171317 log_used = bg .value (' (process/@logused)[1]' , ' bigint' ),
13181318 clientoption1 = bg .value (' (process/@clientoption1)[1]' , ' bigint' ),
1319- clientoption2 = bg .value (' (process/@clientoption1 )[1]' , ' bigint' ),
1319+ clientoption2 = bg .value (' (process/@clientoption2 )[1]' , ' bigint' ),
13201320 activity = CASE WHEN bg .exist (' //blocked-process-report/blocking-process' ) = 1 THEN ' blocking' END ,
13211321 blocked_process_report = bg .query (' .' )
13221322 INTO #blocking_sh
0 commit comments