Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 22nd, 2004, 11:11 PM
NukemHill NukemHill is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 NukemHill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing parameters in Reporting Services

I've spent hours researching this, and have come up empty. Hopefully, someone here can show me that this can be done.

I am using Reporting Services to generate a large report from an even larger database, on SQL Server 2000. I am going to give a generic example of something I'm trying to do. I have a query:

dataset => SELECT mydata FROM mytable WHERE myval = @param

The data that this query generates is being used by several cells in my report table. The only difference between each cell being the value of @param. Now, obviously, the long way of doing this would be to have something like:

dataset1 => SELECT mydata FROM mytable WHERE myval = 1

dataset2 => SELECT mydata FROM mytable WHERE myval = 2

dataset3 => SELECT mydata FROM mytable WHERE myval = 3

etc, etc. The equation for each table cell would then be something like:

= SUM(Field!mydata.value, "dataset1")

where I have to have an explicitly defined dataset for each cell, as above.

What I would *like* would be to have a generic dataset (first dataset above) that I could pass the value of the parameter into in the report. For example:

= SUM(Field!mydata.value, "dataset?param=1")

or

= SUM(Field!mydata.value@param=1, "dataset")

or whatever the particular format would be.

Now that I've given this long-winded explanation of what I want--is this possible? Like I said, I've looked high and low for an answer, and nothing I've seen even hints that this can be done. Am I SOL? Am I just blind and the answer has been right in front of me the entire time? I'm a little desparate, as the report beta is due the 26th, and I really don't want to have to spend the time creating individual datasets for each param value. It literally means the difference between 100+ datasets and a couple dozen.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Passing parameters in Reporting Services


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway