Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

ExecuteXmlReader() returns none value

$
0
0

When I try to build an XmlReader object with ExcuteXmlReader function, it returns none object. but when I test the same query directly in SQL Server Management it works correctly.

command = new SqlCommand(olapCommand + " FOR XML AUTO, XMLDATA", CommandConnection);
XmlReader xr = command.ExecuteXmlReader();
xml = xr.Value;

How could I fix it?



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>