Re: AS400 & filter by date
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Tue, 01 Apr 2008 00:12:04 GMT
Tomas Cerny wrote:
Hello,
we need to import data from AS400 to MS SQL 2000 via ODBC driver
(iSeries ODBC by IBM).
The trouble is with date format and using functions such as NOW() or
GETDATE(). Using these function results in errors, because the ODBC
driver doesn't support these commands. But we need to upload data
filtered by actual date. AS400 date field is in fact a number.
So, the task is to compare (or filter in WHERE clause) number (AS400)
with system date (MS SQL)
Thanks for any help,
Tomas
Can you not use the system DateTime on the AS400? That would be
CURRENT_DATE which you would then have to convert to the number format that
you can compare to your number field.
.
- Follow-Ups:
- Re: AS400 & filter by date
- From: jhofmeyr
- Re: AS400 & filter by date
- Prev by Date: RE: Run a ssis package on SQL Server 2005 Error
- Next by Date: SSIS nested package error
- Previous by thread: RE: Run a ssis package on SQL Server 2005 Error
- Next by thread: Re: AS400 & filter by date
- Index(es):
Relevant Pages
|