I have a XML column in a SQL Server database table. It stores XML responses from a web service.
If that web service times out, it stores the actual text
Error: Timed out waiting for a reply
It's actually storing that text in the XML column - and I can't seem to query it because I cannot compare a string to an XML value. Any ideas?
<ErrorMsg> ..... </ErrorMsg>XML wrapper?create table dbo.Test ( Foo xml ); insert dbo.Test (Foo) values (N'Error: Timed out waiting for a reply'); select * from dbo.Test;'Error: Timed out waiting for a reply'- this is just treated as a single text node. This is why theXML PATHstring concatenation method works and doesn't complain that the output isn't valid XML