Tuesday, September 07, 2010  | 
Welcome to Module Masters support forums - the primary support mechanism for our products. Feel free to post your questions, and we will aim to respond in a timely manner.  We also encourage our users to post any feedback you may have.  You may also email us directly at service@modulemasters.com
Subject: Regarding use of single dataset instead of multiple datasets
Prev Next
You are not authorized to post a reply.

Author Messages
tjpriya2004User is Offline

Posts:2

01/29/2008 09:55  

Hi,

Could you please answer my following question

I have a query with a parameter being passed in. Something like:

select myvalue from mytable where myparam = @param

This query needs to be used multiple times in the report, and the only difference is the value of @param. . There are multiple situations (dozens) where, if I can't use a single dataset  or something similar, then I literally have to have datasets where the only difference is the value of @param. So I would end up with something like:

dataset1: select myvalue from mytable where myparam = 1

dataset2: select myvalue from mytable where myparam = 2

etc, etc.

Is there anyother way that I can do it.

Thanks in advance

Pri

hostUser is Offline

Posts:449

01/30/2008 00:17  
That is an interesting question, unfortunately, I believe you have to not only create multiple datasets, but you also have to create multiple parameters since you want them to hold different values. You may be able to get crafty and do something with embedded code in the report, but I doubt it since datasets are very simple in nature. Have you thought about possibly doing a union or something where your dataset brings back all the data you need, then you leverage filters?
tjpriya2004User is Offline

Posts:2

01/30/2008 10:25  

The thing is the report that I developed has atleast 12 datasets. When I move the report to other databases, datasource changes for them, so I literally have to change the datasource for each dataset everytime I move the report in to other phases like QA, Staging or Production databases.

Do you think if there is anyway that I can use configuration settings or something, istead of changing all the datasets everytime I move the report.

 

Thanks,

Pri

hostUser is Offline

Posts:449

01/31/2008 11:37  
We have toyed with the notion of allowing the datasource being passed in as a parameter or module setting, we will look to add this in the next release assuming we can find a way to make it work!
You are not authorized to post a reply.
Forums > Module Masters Forum > SQL Reporting Services > Regarding use of single dataset instead of multiple datasets



ActiveForums 3.7
Copyright 2005 by Module Masters Privacy StatementTerms Of Use