Hi,
I have written a Stored Procedure in SQL Server 2008 which returns XML output using the FOR XML Clause in the Select statement.
When I execute the Stored Procedure from the DB Directly it gives me a perfect XML Output as desired. But when I am using it from my application it gives me an exception which says - "Invalid command sent to ExecuteXmlReader. The command must return an Xml result."
I have used this in several other places and its working fine. But not here.
Kindly help in this regard.
Shadaan.