I have a basic SQL Server query, created on a new report. If the query uses both a parameter (set to a fixed value) and references a Variable (again set to a fixed value) then I get an exception when trying to run query in the editor dialog or attempting to run the whole report:
The Parameter and Variable have the type set.SqlCommand.Prepare method requires all parameters to have an explicitly set type.
Switching to use just a Parameter (by removing the indicated line from the Products query) or removing the explicit Parameter (and the corresponding clause in the query) then it runs OK.
Is this a bug?
My current work-around is currently to use explicit Parameters (using just Variables would also work).
Thanks,
Chris