I am trying to convert a SQL command from a Crystal XI report to a SQL Server 2005 Reporting Services (SSRS) dataset. I am using the Pervasive ODBC client interface with the Crystal XI report and the SSRS dataset.
The Crystal XI SQL command successfully uses several parameters, but I can't get any parameters to work within an SSRS dataset. I am getting an error "The data extension ODBC does not support named parameters. Use unnamed parameters instead."
For example, the following Crystal XI command works fine:
In SSRS, the following statement does not work:
I get the following error message when running the above statement in SSRS: "Could not generate a list of fields for the query. Check the query syntax, of click Refresh Fields on the query toolbar." Additional Information: ERROR [42000][Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Syntax Error: select * from slbudget where locationid = @<<???>>Location (W3ODBCI.DLL)
Is it possible to use parameters within a SSRS dataset that uses the Pervasive 8.70 ODBC interface?
The Crystal XI SQL command successfully uses several parameters, but I can't get any parameters to work within an SSRS dataset. I am getting an error "The data extension ODBC does not support named parameters. Use unnamed parameters instead."
For example, the following Crystal XI command works fine:
Code:
Select * from slbudget where locationid = {?Location}
In SSRS, the following statement does not work:
Code:
Select * from slbudget where locationid = @Location
I get the following error message when running the above statement in SSRS: "Could not generate a list of fields for the query. Check the query syntax, of click Refresh Fields on the query toolbar." Additional Information: ERROR [42000][Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Syntax Error: select * from slbudget where locationid = @<<???>>Location (W3ODBCI.DLL)
Is it possible to use parameters within a SSRS dataset that uses the Pervasive 8.70 ODBC interface?