dba-database
dba-database copied to clipboard
Check Blocking XML Errors
Check_Blocking throws this error occasionally:
Msg 9420, Level 16, State 1, Procedure Check_Blocking, Line 339
[Batch Start Line 0] XML parsing: line 1, character 369, illegal xml character
This may be related to this XML parsing issue. In which case, adding some explicit aliasing as text should solve it? Maybe?
Something like this:
SELECT
x =
(
SELECT
[text()] =
http://b.Name
FROM dbo.Badges AS b
WHERE http://b.Id = 100564
FOR XML
PATH(''),
TYPE
).value
(
'./text()[1]',
'nvarchar(max)'
);
I got this too
Msg 9420, Level 16, State 1, Procedure Check_Blocking, Line 373 [Batch Start Line 2] XML parsing: line 1, character 366, illegal xml character