Hi:
I'm trying to read data from Navision 2.60 ERP with own database to a
SQL Server 2000 database via ODBC. All is working except just one
thing, how to filter data with a date field.
I have some big tables that have a date field and I just want to read
data from one or few days, not all the table, cos I will be doing this
every day (datawarehousin g).
If I write in my SQL Server DTS:
SELECT *
FROM MYNAVISIONTABLE
WHERE (MYDATE = { d '2005-06-30' })
It works! This notation is the one required by C/ODBC Navision driver.
Now I want to change 2005-06-30 for something like "sysdate" or "today"
or similar... to execute this all days.... any ideas?
THANK YOU,
Regards
Fran
I'm trying to read data from Navision 2.60 ERP with own database to a
SQL Server 2000 database via ODBC. All is working except just one
thing, how to filter data with a date field.
I have some big tables that have a date field and I just want to read
data from one or few days, not all the table, cos I will be doing this
every day (datawarehousin g).
If I write in my SQL Server DTS:
SELECT *
FROM MYNAVISIONTABLE
WHERE (MYDATE = { d '2005-06-30' })
It works! This notation is the one required by C/ODBC Navision driver.
Now I want to change 2005-06-30 for something like "sysdate" or "today"
or similar... to execute this all days.... any ideas?
THANK YOU,
Regards
Fran
Comment