Try this. I prefer using OPENQUERY and pass through the actual statement, so you do not get messed up with date time formats
SELECT * FROM OPENQUERY(ORACLE_LS,
'SELECT TOP 10 * FROM SCHMA.TABLE_NAME
where INVOICE_DATE between TO_DATE(''2011-11-01'', ''YYYY-MM-DD'')
and TO_DATE(''2011-11-30'', ''YYYY-MM-DD''');
You can also use TO_DATE('01-NOV-2011')
which is the default format.
3 People are following this question.