How can i add a field to dataset from another dataset in ssrs?

喜夏-厌秋 提交于 2019-12-11 22:54:36

问题


I want to add a field to dataset from another dataset in ssrs?can anybody help me to solve this?

Thanks in advance!!!


回答1:


if you are using SQl Server 2008 R2, you might be able to use the lookup functions to join the data inside of SSRS:

http://blog.datainspirations.com/2010/03/19/sql-server-2008-r2-reporting-services-look-up-look-down-look-all-around-part-i/

otherwise you can use a SSIS package as a datasource to do you any type of join and then have your SSRS report use that. This is a little complex to setup, and not recommended for production; but it can work:

http://msdn.microsoft.com/en-us/library/ms345250(SQL.100).aspx

http://msdn.microsoft.com/en-us/library/ms159215(SQL.100).aspx

Good luck




回答2:


In general, you can't merge datasets in SSRS.

You can explicitly ask for a value in a text box (using FIRST for example with the correct scope) from another dataset.



来源:https://stackoverflow.com/questions/3163393/how-can-i-add-a-field-to-dataset-from-another-dataset-in-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!