SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


want to use SQL function that returns XML as datasource to SSRS report in 2008R2


want to use SQL function that returns XML as datasource to SSRS report in 2008R2

Author
Message
dear_madhanr
dear_madhanr
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 127
HI All,

I am trying to use a SQL function which returns XML as a datasource for an SSRS report 2008R2.
I am not sure how this is posible.
1. I have created SQL datasource since i need to execute the SQL function which returns XML
2. Next i have created a dataset with the above datasource, but the problem is here. I need the XML nodes to be recognised ad fields which is not happening.

Any suggestions or best practises please.

Regards,
Madhan
mysorian
mysorian
SSC Veteran
SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)

Group: General Forum Members
Points: 220 Visits: 101
Simplest way would be to use the For XML clause in your query. Persist the query to the file system. Now you can connect to this using Report Builder.

I do have an example in my recent book on SQL Server Reporting Service 2012 the details of which you can find here:

http://www.sys-con.com/node/2712920
or here:
http://hodentekmsss.blogspot.com/2013/05/contents-of-my-forthcoming-book-on-sql.html

The links in the book are presented here:
http://hodentekmsss.blogspot.com/2013/06/links-in-book-learn-sql-server.html
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search