![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi SQL Monsters I am getting the following error when I run my query. The query is supposed to be pulling the waitresource data ("FILE: 5:0") from the XML formatted column name TextData. Do you know what I could be doing wrong? Thanks in advance. MC SELECT X.x.value('waitresource') FROM dbo.BLOCKING_EVENTS CROSS APPLY TextData.nodes('/blocked-process-report/') AS X(x) Msg 2256, Level 16, State 1, Line 3 XQuery [dbo.BLOCKING_EVENTS.TextData.nodes()]: Syntax error near '<eof>', expected a "node test". |
|
blocked-process-report monitorLoop="29629" blocked-process process id="process84a7a8" taskpriority="0" logused="10000" waitresource="FILE: 5:0" waittime="76812" schedulerid="1" kpid="3656" status="background" spid="11" sbid="0" ecid="0" priority="0" transcount="0" executionStack frame line="1" sqlhandle="0x0000000000000000000000000000000000000 00000000000" / /executionStack inputbuf / /process /blocked-process |
#2
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |