@@ -775,8 +775,8 @@ BEGIN
775775 collection_time datetime2(7) NOT NULL DEFAULT SYSDATETIME(),
776776 blocked_process_report varchar(22) NOT NULL,
777777 event_time datetime2(7) NULL,
778- database_name nvarchar(128) NULL,
779- currentdbname nvarchar(256) NULL,
778+ database_name sysname NULL,
779+ currentdbname sysname NULL,
780780 contentious_object nvarchar(4000) NULL,
781781 activity varchar(8) NULL,
782782 blocking_tree varchar(8000) NULL,
@@ -873,7 +873,7 @@ CREATE TABLE
873873(
874874 id integer IDENTITY PRIMARY KEY CLUSTERED ,
875875 check_id integer NOT NULL ,
876- database_name nvarchar ( 256 ) NULL ,
876+ database_name sysname NULL ,
877877 object_name nvarchar (1000 ) NULL ,
878878 finding_group nvarchar (100 ) NULL ,
879879 finding nvarchar (4000 ) NULL ,
@@ -1312,7 +1312,7 @@ BEGIN
13121312
13131313 SELECT
13141314 bx .event_time ,
1315- currentdbname = bd .value (' (process/@currentdbname)[1]' , ' nvarchar(128) ' ),
1315+ currentdbname = bd .value (' (process/@currentdbname)[1]' , ' sysname ' ),
13161316 spid = bd .value (' (process/@spid)[1]' , ' integer' ),
13171317 ecid = bd .value (' (process/@ecid)[1]' , ' integer' ),
13181318 query_text_pre = bd .value (' (process/inputbuf/text())[1]' , ' nvarchar(max)' ),
@@ -1369,7 +1369,7 @@ BEGIN
13691369 /* Blocking queries*/
13701370 SELECT
13711371 bx .event_time ,
1372- currentdbname = bg .value (' (process/@currentdbname)[1]' , ' nvarchar(128) ' ),
1372+ currentdbname = bg .value (' (process/@currentdbname)[1]' , ' sysname ' ),
13731373 spid = bg .value (' (process/@spid)[1]' , ' integer' ),
13741374 ecid = bg .value (' (process/@ecid)[1]' , ' integer' ),
13751375 query_text_pre = bg .value (' (process/inputbuf/text())[1]' , ' nvarchar(max)' ),
@@ -1951,7 +1951,7 @@ SELECT
19511951 log_used = bd .value (' (process/@logused)[1]' , ' bigint' ),
19521952 clientoption1 = bd .value (' (process/@clientoption1)[1]' , ' bigint' ),
19531953 clientoption2 = bd .value (' (process/@clientoption2)[1]' , ' bigint' ),
1954- currentdbname = bd .value (' (process/@currentdbname)[1]' , ' nvarchar(256) ' ),
1954+ currentdbname = bd .value (' (process/@currentdbname)[1]' , ' sysname ' ),
19551955 currentdbid = bd .value (' (process/@currentdb)[1]' , ' integer' ),
19561956 blocking_level = 0 ,
19571957 sort_order = CONVERT (varchar (400 ), ' ' ),
@@ -2071,7 +2071,7 @@ SELECT
20712071 log_used = bg .value (' (process/@logused)[1]' , ' bigint' ),
20722072 clientoption1 = bg .value (' (process/@clientoption1)[1]' , ' bigint' ),
20732073 clientoption2 = bg .value (' (process/@clientoption2)[1]' , ' bigint' ),
2074- currentdbname = bg .value (' (process/@currentdbname)[1]' , ' nvarchar(128) ' ),
2074+ currentdbname = bg .value (' (process/@currentdbname)[1]' , ' sysname ' ),
20752075 currentdbid = bg .value (' (process/@currentdb)[1]' , ' integer' ),
20762076 blocking_level = 0 ,
20772077 sort_order = CONVERT (varchar (400 ), ' ' ),
0 commit comments