All,
I have a stored procedure on SQL Server 2005 that accepts an XML argument. When I execute:
exec PutResultsOnDb '<?xml version="1.0" encoding="utf-16"?><loads of Xml data>'
I get the error:
XML parsing: line 1, character 39, unable to switch the encoding
However when I do
exec PutResultsOnDb '<?xml version="1.0" encoding="utf-8"?><loads of Xml data>'
It works perfectly fine.
Any ideas?