I am creating a SSIS package that involves a where clause as: WHERE effectiveDate >= @effectiveDate
Therefore, I defined @effectiveDate
at the package level so that I can pass in value from a sql command using a different connection.
At the OLE DB source, I selected 'SQL command', and put the code as Select ... FROM ... WHERE effectiveDate >= ?
When I click on the 'parameters', an error appears: 'Parameters cannot be extracted from the SQL command. blablabla... use "SQL command from variable"...'
I am trying to avoid using SQL command from variable and try to locate the problem since I should be able to pass in variable.
Can anyone help? Thanks a lot!!