![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
Hello guys, thank you for posts. Rick, thanks for CURRENT_DATE command, it helped, but we are not done yet. Maybe I haven't expressed myself correctly, what we exactly need: We need to create a DTS package that imports data from AS400 tables (DB2) via ODBC driver (made by IBM - that from iSeries driver) into MS SQL 2000 server. We need to filter records based on range of dates (for example from 01/03/2008 to 31/03/2008, assuming this date format is DD/MM/YYYY). The problem we face now is, that AS400 (DB2) natively holds date type format as number. In my example 20080301 and 20080331. |
|
So we need a construction, passable through ODBC driver to compare for example CURRENT_DATE (2008-03-01 00:00:00) with 20080301. |
#32
| |||
| |||
|
|
Hello guys, thank you for posts. Rick, thanks for CURRENT_DATE command, it helped, but we are not done yet. Maybe I haven't expressed myself correctly, what we exactly need: We need to create a DTS package that imports data from AS400 tables (DB2) via ODBC driver (made by IBM - that from iSeries driver) into MS SQL 2000 server. We need to filter records based on range of dates (for example from 01/03/2008 to 31/03/2008, assuming this date format is DD/MM/YYYY). The problem we face now is, that AS400 (DB2) natively holds date type format as number. In my example 20080301 and 20080331. |
|
So we need a construction, passable through ODBC driver to compare for example CURRENT_DATE (2008-03-01 00:00:00) with 20080301. |
#33
| |||
| |||
|
|
Hello guys, thank you for posts. Rick, thanks for CURRENT_DATE command, it helped, but we are not done yet. Maybe I haven't expressed myself correctly, what we exactly need: We need to create a DTS package that imports data from AS400 tables (DB2) via ODBC driver (made by IBM - that from iSeries driver) into MS SQL 2000 server. We need to filter records based on range of dates (for example from 01/03/2008 to 31/03/2008, assuming this date format is DD/MM/YYYY). The problem we face now is, that AS400 (DB2) natively holds date type format as number. In my example 20080301 and 20080331. |
|
So we need a construction, passable through ODBC driver to compare for example CURRENT_DATE (2008-03-01 00:00:00) with 20080301. |
![]() |
| Thread Tools | |
| Display Modes | |
| |