Groups | Blog | Home
all groups > sql server reporting services > march 2005 >

sql server reporting services : One to Many Relations


Greg Rowland
3/25/2005 11:24:56 AM
Having designed a report that accepts a Job# parameter and returns;
Individual Job Information
Summary of Tabled Labor Charges, Grouped by Labor Type
Summary of Tabled Material Charges, Grouped Purchase Order
Summary of Tabled Subcontracts Charges, Grouped Purchase Order

Bottom Line Totals

Each section provided by a separate Dataset using the Job# parameter

Now I would like to modify this report to be created/batched from a list of
Job#s contained in a list table.

How can I link the datasets to the list table in place of the parameter, or
something?

Suggestions?

Thanx in advance,

Greg


Greg Rowland
3/25/2005 7:11:54 PM
Hi Mary,

(@somecommadelimitedlist) as a report parameter?

Is there a way to pass the JobList Dataset between datasets as a parameter.

SQL Skills I got, I was thinking of creating a stored procedure that flat
files all of the records "from the JobList table" into a couple of simplifed
tables. Then let Report Services, Group and Filter it out.

Basically I am prepossessing the "Jobs List entered by the user" in a Delphi
Win32 application, into the SQL Jobs List Table. Then I Just want Report
Services to repeat the existing report for each job in the list.

select
job_num as [Job#],
job_desc as [Description]
from TWO WorkOrders
where job_num in
(
select
[Job#]
from [Jobs_Batch_List]
)


[quoted text, click to view]

Greg Rowland
3/25/2005 8:21:27 PM
It's like I need a;
Report Group By,
Or Body Group By.

Rather like Table Group by.

Tried embedding tables within tables. The designer allowed it, however it
would not runJ

G

Mary Bray [MVP]
3/26/2005 9:38:58 AM
Basicaaly you can't - multi value lists are not natively support in the
current version.
You can however roll it yourself, either by dynamically building the sql
string to use JobID In (@somecommadelimitedlist) or if you have some SQL
skills you can create a function in SQL Server to take a comma separated
list and return a table for use in a query.
Check this out:
http://www.windowsitpro.com/Article/ArticleID/26244/26244.html?Ad=1

--

Mary Bray [SQL Server MVP]
Please reply only to newsgroups

[quoted text, click to view]

Mary Bray [MVP]
3/28/2005 6:14:30 PM
You can't pass the datasets around, but you can pass parameters.

--

Mary Bray [SQL Server MVP]
Please reply only to newsgroups

[quoted text, click to view]

AddThis Social Bookmark Button