I am learning how to set up Parameters for my SSIS Tasks. I kind of have the hang of it, but I am still running into weird issues. I am running a query like below on a Oracle server through SSIS. However, when I create the parameter for the drugname, nothing gets inserted into the temptable. The Job does complete successfully. The variable is of type string and the paramater is of type varchar. So I am not sure why it isn't working. Any ideas? BTW, I can get this to work fine when I do the date as a parameter. Its just the drugname that is giving me grief. Thanks.
insert into tempTable
select *
from table t
join table2 t2 on
t2.drugid = t.drugid
where t.date = to_date('05-01-2010', 'YYYY-MM-DD')
and t2.drugname = ?
insert into tempTable
select *
from table t
join table2 t2 on
t2.drugid = t.drugid
where t.date = to_date('05-01-2010', 'YYYY-MM-DD')
and t2.drugname = ?