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
 Development Tools
 Reporting Services Development
 BUG? Multiple Dataset Columns

Author  Topic 

jonathans
Starting Member

40 Posts

Posted - 2005-05-31 : 10:08:51
Hey all,

Ok lets for sake assume I have 2 or more datasets associated with a report. The first dataset populates the Columns perfect in the Fields tab, the 2nd dataset (which shows completely different columns/fields) displays the 1st Datasets Columns instead of its own.

Dont know if anyone else has had this....

WARNING: Running on cold coffee!

jonathans
Starting Member

40 Posts

Posted - 2005-06-01 : 07:05:02
Ok, I seem to have made some progress with this 'bug'. It turns out that because I have 1 stored procedure, which returns a single dataset each time, but because the stored procs nesting level changes according to the parsed paramters and as such the returning datasets are different.

So it would seem that the report designer doesnt base its columns on the returning dataset of the stored proc, but instead on the 1st workable returning route.

The below example is the calling procedure i use to generate the data for the reports. Everything works great, till I get to level 5, which in the dataset view returns correctly, but in the Field Property tab it returns Level 1's fields.

Example:
Execution Level 1: r_NFPLeadsReport '2001-01-01', '2010-01-01'
Returns: ID, Name, AverageLeadAge, TotalLeadsSent, OpenLeads, PendingLeads, ClosedLeads, Sales, TotalSalesValue, ConversionRate, Type

Execution Level 2: r_NFPLeadsReport '2001-01-01', '2010-01-01', 5933
Returns: ID, Name, AverageLeadAge, TotalLeadsSent, OpenLeads, PendingLeads, ClosedLeads, Sales, TotalSalesValue, ConversionRate, Type

Execution Level 3 : r_NFPLeadsReport '2001-01-01', '2010-01-01', 9444
Returns: ID, Name, AverageLeadAge, TotalLeadsSent, OpenLeads, PendingLeads, ClosedLeads, Sales, TotalSalesValue, ConversionRate, Type

Execution Level 4 : r_NFPLeadsReport '2001-01-01', '2010-01-01', null, 'ABC'
Returns: ID, Name, BankerName, BankerID, BranchName, PlannerName, PlannerID, ClientName, ClientCISNumber, LeadDuration, LeadSent, LeadStatus, TimesRefered, TimesRescheduled, Product, SalesValues

Execution Level 5a : r_NFPLeadsReport '2001-01-01', '2010-01-01', null, null, 1, 1
Returns: RescheduleDate, RescheduledBy

Execution Level 5b : r_NFPLeadsReport '2001-01-01', '2010-01-01', null, null, 1, 0
Returns: RedirectDate, RedirectFrom, RedirectTo

WARNING: Running on cold coffee!
Go to Top of Page
   

- Advertisement -