Showing posts with label dataset. Show all posts
Showing posts with label dataset. Show all posts

Thursday, March 22, 2012

Combining a stored procedure and a table in one Dataset?

Is it possible to combine a stored procedure result set and a table into one dataset? For example, if I have a stored procedure with field "TradeID", and a table with "TradeID", can I join the them in a dataset?

Thanks.

Brad

If you mean a SQL style join at the dataset level then the answer is no.

You could always use a batch of SQL instead of a simple select and use temporary tables within the query to perform the JOIN. Even better create a stored procedure to do it.

If the data is coming from different databases/platforms then could use linked servers.

sqlsql

Combining a stored procedure and a table in one Dataset?

Is it possible to combine a stored procedure result set and a table into one dataset? For example, if I have a stored procedure with field "TradeID", and a table with "TradeID", can I join the them in a dataset?

Thanks.

Brad

If you mean a SQL style join at the dataset level then the answer is no.

You could always use a batch of SQL instead of a simple select and use temporary tables within the query to perform the JOIN. Even better create a stored procedure to do it.

If the data is coming from different databases/platforms then could use linked servers.

Tuesday, March 20, 2012

Combine table and matrix with different dataset

Hello all,
I need to combine table and matrix.. Problem is that they have
different dataset and matrix depends from info from table. In table I
show user info and in matrix i should show user activity by event
type...
I did it with subreport... It very-very slow.. SQL for both dataset are
pretty fast. But when I use subreport it became to be extrimely slow...
Is there some other way to do such kind of task?
Thank youTry using Jump to report Using Navigation in the properties tab,Hope It
serves better
Regards
Raj Deep.A
vetaldj wrote:
> Hello all,
> I need to combine table and matrix.. Problem is that they have
> different dataset and matrix depends from info from table. In table I
> show user info and in matrix i should show user activity by event
> type...
> I did it with subreport... It very-very slow.. SQL for both dataset are
> pretty fast. But when I use subreport it became to be extrimely slow...
> Is there some other way to do such kind of task?
> Thank you|||Unfortunatley I can use it...
I need to show matrix right after information about user.. I can't just
navigate user to other report...
Thanks for idea.. I think it will be usefull for some other reports...
Is there some other way to do it?
RajDeep wrote:
> Try using Jump to report Using Navigation in the properties tab,Hope It
> serves better
> Regards
> Raj Deep.A
> vetaldj wrote:
> > Hello all,
> >
> > I need to combine table and matrix.. Problem is that they have
> > different dataset and matrix depends from info from table. In table I
> > show user info and in matrix i should show user activity by event
> > type...
> > I did it with subreport... It very-very slow.. SQL for both dataset are
> > pretty fast. But when I use subreport it became to be extrimely slow...
> >
> > Is there some other way to do such kind of task?
> >
> > Thank you

Monday, March 19, 2012

Combine 2 Dataset

Is that possible to do that'
Coz I use BSM to export a scorecard to RS and It becomes 2 seperate dataset.
I just wanna know if it's possible to combine those 2 dataset easily?/
thanksCheck out subreports. That is really the only way to combine (or seem to
combine) datasets. You can put a subreport is the detail line of a report if
you need to.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Hei" <Hei@.discussions.microsoft.com> wrote in message
news:A994E1E3-C7CA-4AB2-AD95-BA5CAE193AEE@.microsoft.com...
> Is that possible to do that'
> Coz I use BSM to export a scorecard to RS and It becomes 2 seperate
> dataset.
> I just wanna know if it's possible to combine those 2 dataset easily?/
> thanks
>

Saturday, February 25, 2012

Column name not recognised even though the procedure returns a table with that name?

I am databinding a dataset formed from a stored procedure,(all done on page_load).

However, the reference to the column name is not recognised with the following error being returned.

Column with name "CalcVal" was not found.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.ArgumentException: Column with name "CalcVal" was not found.

Source Error:

Line 152: chartCommand.Fill(chartDs);Line 153: Chart1.DataSource = chartDs;Line 154: Chart1.DataBind();Line 155:Line 156: }

This worked before deployment and the other controls which are bound to data using stored procedures seem to work. However, these other data sources are all sqlDatasoure controls.

Any suggestions would be helpful.

I have found issues relating the to user ID and password which seems to depend on whether the web server and data server are the same machine or whether they are remote from each other.

cheers-jim.

The database folks left debug on which was returning an additionaltable that didn't have the column being referenced!!!

All solved. Cheers-jimBig Smile [:D]