If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 to MS Sql Date/Time problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-03, 10:55
RudiVdm RudiVdm is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
Post DB2 to MS Sql Date/Time problem

I'm using what i presume to be the latest ODBC iSeries driver for Windows, and using this to connect to the AS 400 from MS SQL Server 7.
The problem I'm having is that once I've linked the table and start perform queries, certain field values are aborting my queries. I've discovered that the problem is that DB 2 accepts dates from 0001/01/01 and SQL server 7 only starts at around 1790/01/01. SQL Server obviously discovers that the field data type on the DB2 is Date and attempts to import the values as such, then with 0001-01-01 as the value, I'm politely told by SQL server to get stuffed.

If anyone knows of a way to work around this problem without actually changing the dates in the source DB, I would greatly appreciate their help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On