ODBC Connection and Functions
Posted: Wed 17 Mar 2010 14:43
I have to connect to a Progress database via ODBC and execute the following SQL statement:
The problem is that the uniDAC components are attempting to find a function called "d", but what I need is to pass the above SQL EXACTLY as is without any modifications, because {d...} is a directive to the Progress SQL engine to cast the value as a Date Type.
How can I do this?
Best Regards
Code: Select all
SELECT DISTINCT
tracking.order-num,
tracking.phase-num
FROM
tracking
LEFT JOIN order-mast on tracking.order-num = order-mast.order-num
WHERE
(
(tracking.act-finish-dt >= {d 2009/12/28})
AND
(tracking.act-finish-dt <= {d 2010/01/31})
)
ORDER BY
tracking.order-num
How can I do this?
Best Regards