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 > Informix > ODBC Failed - [Informix]Date could not be converted to month/day/year format (#-1210)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-04, 12:14
snoopyyu snoopyyu is offline
Registered User
 
Join Date: Jan 2004
Posts: 21
ODBC Failed - [Informix]Date could not be converted to month/day/year format (#-1210)

We have a table with a column which called 'tworkdt' which is a date field.
When we try the following select statement from our application:
select * from mytable where tworkdt > '05/05/2004', we got the following error:

ODBC--called failed. [INTERSOLV][ODBC Informix driver]
[Informix]Date could not be converted to month/day/year format (#-1210)

Any ideas why we have this error?
When I looked at the table itself, I found there are some records that got corrupted (but the tworkdt field is not corrupted, it was other fields got corrupted). We have already deleted the corrupted data from the table but still got the above error.

Thank you for all help in advance.
Reply With Quote
  #2 (permalink)  
Old 05-11-04, 14:20
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
A true date field - or datetime?

Have you tried:
select * from mytable where tworkdt > date('05/05/2004')

Also, check your version of setnet. A lot of ODBC errors go away with new releases.
__________________
Fred Prose
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