all groups > sql server reporting services > june 2005 >
You're in the

sql server reporting services

group:

Is it possible to link two datasets together ?


Re: Is it possible to link two datasets together ? Jack
6/23/2005 12:00:00 AM
sql server reporting services:
Thanks Jan, but that is not exactly touching my issue: "titles" and "sales"
are different tables. In my opinion a union is isn't a proper way to do
this. Anyway...

My central idea behind my question is: If I could solve this problem, I
would be more flexible in using data for several reports. For example, I 've
got one special view for clients (supposing there are more tables to build
this view) , a second special view for sales and many more views for other
matters. In every report where I now have to use client-data, I can take the
same view. Otherwise I have to change every select statement for every
special report if anything changes...

[quoted text, click to view]

jack


"Jan Pieter Posthuma" <jan-pieterp.at.avanade.com> schrieb im Newsbeitrag
news:BF29CB19-BD2C-4218-A9AE-F970A4D6E011@microsoft.com...
[quoted text, click to view]

RE: Is it possible to link two datasets together ? Jan Pieter Posthuma
6/23/2005 5:23:15 AM
Hi,

It isn't possiple to link two datasets together or use more than one dataset
on a control.

But what about one dataset which unions both sql queries? And then you can
use a filter on a control to get only data from a single table.

e.g. the dataset:
select *, 'Titles' as TableName from pubs.dbo.titles
UNION
select *, 'Sales' as TableName from pubs.dbo.sales

and as filter to get titles data:
=Fields!TableName.Value='Titles'

Be sure that both queries you use to union have the same column names, so
don't use the *.

--
| Jan Pieter Posthuma
--


[quoted text, click to view]
Is it possible to link two datasets together ? Jack
6/23/2005 1:41:15 PM
Saludos !

given two datasets:

--------------------------------------------
dataset1: select * from pubs.dbo.titles
dataset2: select * from pubs.dbo.sales
--------------------------------------------

My question now is, how can i establish a relation between this two datasets
? And where (data register, layout register) ?
Or only with Subreports ?

thanks for any suggestion, hint....

Jack

Re: Is it possible to link two datasets together ? sarah.abnett NO[at]SPAM jarvis-uk.com
6/27/2005 6:37:40 AM


[quoted text, click to view]

Not sure this answers your question but...
Use a stored procedure to provide your data, then this stored procedure
can be re-used for all reports. And only has to be edited once for all
reports.
sarah
Re: Is it possible to link two datasets together ? Jack
6/28/2005 12:00:00 AM
You're right. thats the way we all doing it for years. But now for several
reasons we would like to use views instead of procs... so our customers are
able to easily create their own reports and links between their required
tables. without any knowledge of the underlying structure.

Jack

<sarah.abnett@jarvis-uk.com> schrieb im Newsbeitrag
news:1119879460.100655.234790@g44g2000cwa.googlegroups.com...
[quoted text, click to view]

Re: Is it possible to link two datasets together ? Jan Pieter Posthuma
6/29/2005 12:55:06 AM
Hi,

First sorry for my late reply, but I must say your last reply explained your
needs perfectly.

What you can try is to create a datasource with integrated authentication
turned on. This would force SRS to use the users credentials to log in to the
database. In the database views (to which the users only have read rights)
you can create a user specified select statement by filtering with the SQL
function SYSTEM_USER (SUSER_SNAME).

Unfortunaly you can only use select statements in views. So if your database
structure can't cope with this kind of behaviour, you can only fall back to
stored procedures.

Hope this would help you further. Feel free to ask for more information.

--
| Jan Pieter Posthuma
--


[quoted text, click to view]
AddThis Social Bookmark Button