I have an query that uses the XML
data type. (You can see the query here.)
Just to be clear that means that my query has something like this in it:
declare @xmlDoc XML
When I try to paste my query in as a Dataset for a SQL Server Reporting Services Report in BIDS (Visual Studio 2008) a dialog pops asking me to define my parameters:
The problem is that I don't have any Parameters! I define and use @xmldoc in the query (it runs with no issues in SSMS).
It does not really seem to matter what I enter here. This is always the next dialog box:
"OK" closes the Dataset properties and I get no fields setup for me. "Cancel" gets me back to the properties to try again. If I put in a query without the XML
data type then it works fine.
I am stumped... I can only conclude that SSRS does not support the XML data type.
Is that true? Is there a work around?