When trying to enter a SQL query with parameters using the Oracle OLE DB provider I get the following error:
Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable.
ADDITIONAL INFORMATION:
Provider cannot derive parameter information and SetParameterInfo has not been called. (Microsoft OLE DB Provider for Oracle)
I have tried following the suggestion here but don't quite understand what is required:Parameterized queries against Oracle
Any ideas?
Best Solution
To expand on the link given in the question:
The expression builder can dynamically create expressions using variable to create 'parametised queries'.
So the following 'normal' query:
Can be written in the expression builder as:
You can then do null handling and data conversion using the expression builder.