Hi
Im using DOA with Oracle and I get a simple problem. Im trying to store a date in a variable parameter using ToracleQuery.SetVariable.
I use a declarevariable(0,otdate);
and a setvariable(0,date);
I have the following SQL that it generates in the sql just before the execute
update PT_CONTACT_RATE_ALERTS set
CONT_ID = '000000000075',
RATE_ALERT_ID = 22,
ALERT_DATE = TO_DATE('05/09/2005','MM/DD/YYYY'),
COMPLETED = NULL
where
CONT_ID = :CONTID and
RATE_ALERT_ID = :ALERTID and
ALERT_DATE =
ATEID
the problem it seems when I look at the Getvariable(2) ie of the date it just has '01/01/2005' and none of the TO_DATE Stuff,, how can I get the ToracleQUery generate the right date format for oracle?
thanks in advance
Im using DOA with Oracle and I get a simple problem. Im trying to store a date in a variable parameter using ToracleQuery.SetVariable.
I use a declarevariable(0,otdate);
and a setvariable(0,date);
I have the following SQL that it generates in the sql just before the execute
update PT_CONTACT_RATE_ALERTS set
CONT_ID = '000000000075',
RATE_ALERT_ID = 22,
ALERT_DATE = TO_DATE('05/09/2005','MM/DD/YYYY'),
COMPLETED = NULL
where
CONT_ID = :CONTID and
RATE_ALERT_ID = :ALERTID and
ALERT_DATE =

the problem it seems when I look at the Getvariable(2) ie of the date it just has '01/01/2005' and none of the TO_DATE Stuff,, how can I get the ToracleQUery generate the right date format for oracle?
thanks in advance