Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Dependency beetween different datasets

Author  Topic 

SiThia
Starting Member

1 Post

Posted - 2009-12-03 : 14:17:13
Hi,
Is it possible to use a dataset value as a default value for a second dataset?

Here is the problem:
I have to create two datasets, the first one is populated by a stored procedure and returns the data list for a simple tablix and a single value. Which shows no difficulty.
The second dataset must be populated by a stored procedure also, but the problem is, it has to get a parameter(single value) from the first dataset results.

Is there a way to do it easily, or do I have to use tricks (or maybe magic...)

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-12-03 : 14:26:45
I think temp table will solve your problem!

Store the data list into a temp table and make use of it for next result set.

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

behrman
Yak Posting Veteran

76 Posts

Posted - 2009-12-07 : 05:16:00
There are 3 methods for copying DataSet. U can check them at MSDN for description & details..

1) .Copy
http://msdn.microsoft.com/en-us/library/system.data.dataset.getchanges(VS.71).aspx

2) .Clone
http://msdn.microsoft.com/en-us/library/system.data.dataset.clone(VS.71).aspx

3) .GetChanges
http://msdn.microsoft.com/en-us/library/system.data.dataset.getchanges(VS.71).aspx

RAQ Report: Web-based Excel-like Java reporting tool
Go to Top of Page
   

- Advertisement -