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


Reporting Services - Dataset multiple


Reporting Services - Dataset multiple

Author
Message
02perla
02perla
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 5
Hi
I have a problem with use of Dataset multiple.
I would want to create a 'similar' join between two dataset various in the visual Studio 2005 (development Tool)
I would have to associate cod- 1*dataset with cod - 2*dataset


I would want put up results:

1* Dataset
- Cod
- Name

2* dataset
- cod
- prod

result:
Cod , Name, prod
Luke L
Luke L
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3948 Visits: 6127
Is there any reason why you can't just do this all in one query in your database using a Join?

Instead of creating 2 datasets, just create one dataset and in the query do something like the following...


Select t1.cod, t1.Name, t2.Prod
FROM table1 as t1
INNER JOIN table2 t2
ON t1.cod = t2.cod



-Luke.

To help us help you read this

For better help with performance problems please read this
Syed Asim Rizvi
Syed Asim Rizvi
SSC-Enthusiastic
SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)

Group: General Forum Members
Points: 150 Visits: 224
It is recommended to use one query using JOINS, but if that is not possible, you can use LOOKUP in SSRS 2008 R2. Lookup is not available in SSRS 2008 or prior versions.
You can write an expression like:
=Lookup(Fields!cod.Value, Fields!cod.Value, Fields!prod.Value, "dataset2")
Vishal Jharwade
Vishal Jharwade
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 57
If you could use SSRS 2008 R2 or later version, you can utilize the SSRS Lookup features that joins multiple datasets. Follow the below link to use multiple datasets in report using LOOKUP:


http://www.sqlcircuit.com/2012/03/ssrs-2008-r2-lookup-how-to-use-multiple.html

Thanks,
Vishal
Amit Raut
Amit Raut
SSC Eights!
SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)SSC Eights! (903 reputation)

Group: General Forum Members
Points: 903 Visits: 342
Luke L (5/18/2009)
Is there any reason why you can't just do this all in one query in your database using a Join?

Instead of creating 2 datasets, just create one dataset and in the query do something like the following...


Select t1.cod, t1.Name, t2.Prod
FROM table1 as t1
INNER JOIN table2 t2
ON t1.cod = t2.cod



-Luke.


I agree with Luke L. Try constructing a single dataset to have all data available and then utilize it. Lookup, Shared Dataset is not available in 2005.
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