ssis - Using BIDS to extract data from Informix ODBC source with parameters -


As I am in the title, I am trying to extract the data from the parameters with my inputs Odyssey source. I have two parameters which I am attempting to pass are both date times and I am trying to get the current start date for example 2014-10-10 00:00:00 and End date 2014-10-10 23:59:59 .

If I do this with a normal query:

  SELECT * from tabline where 'start date between 2014-10-10 00:00:00' and ' '2014-10-10 23:59:59' '  

Everything works well, however, if I have tried to use parameters that I have determined:

  SELECT * from tabline where is the start date? And?   

I get the following error:

  Open Database Connectivity (ODBC) Error State: '07001' Original Error Code: -11012 [Informers] [ Informs Odyssey Driver] Wrong number of parameters.   

I think that is to do this with my query, but I see and I do not get anything. Will someone be able to help me? Thanks!

When you need to have parameterized query ('?') Binding, it is likely that you have the ODBC API SQL BINIL Can use The number of parameters in the query (in this case is 2) should match the number of bind API calls. Please make sure the binding is done correctly, please check your ODBC code.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -