Good day all,
Any thoughts would be appreciated:
I have set up two embedded datasets:
-one called 'GetTaskID', which generates a list of all Distinct 'TaskID' s with 'CreationDate' between two date parameters (@Start and @End) provided by the user.
- the other called 'GetData', takes @TaskID as a parameter and generates a recordset of actual data
I have set both the available and default values of @TaskID to 'Get Values from query' and specified that it will be the TaskID's returned from 'GetTaskID' query. Running the 'GetTaskID' query (@Start = 01/01/2015 AND @End = 01/02/2015 ) in either my Server Management Studio or the query builder returns the correct result : TaskID's are returned from 1097973 upwards (CreationDate : 05/01/2015) .
However when I run the report, the parameter dropdown for @TaskID is populated correctly (1097973 upwards) but the returned data - that which is dispayed in the report coming from 'GetData' relates to entries from 1078982 - The first entry in the view queried by 'GetTaskID' with a 'CreationDate' of '05/08/2012'.
'GetData' is executing a stored procedure , I think this may be the cause of the issue as I have seen a few articles on the limitations of data/fields returned when using stored procedures within Reporting Services.
I would not generally use a stored procedure to generate data in this fashion but I believe it necessary as I need to coalate an undetermined number of 'TaskNotes' entries for a single 'TaskID' and at the same time procure the rest of the necessary data in one hit.
Confirmation or explanation of my issue and further suggested methods would be greatly appreciated.
Kind regards
BigFudge