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--call failed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-04, 12:41
kelvinpuk kelvinpuk is offline
Registered User
 
Join Date: Jul 2003
Posts: 23
ODBC--call failed

I've linked my IDS 9.3 table into Access 2000 database and get an error when executing the following query.

SELECT informix_stkhstm.dated, informix_stkhstm.dated, informix_stkhstm.*
FROM informix_stkhstm
WHERE (((informix_stkhstm.dated)=#2/17/2004#) AND ((informix_stkhstm.dated)=DateValue("17/FEB/2004")));

informix_stkhstm.dated)=#2/17/2004# causes error message
Invalid month in date (#-1205).

My Client Locale is en_US.CP1252 so is my Database Locale.

The following query works fine.

SELECT informix_stkhstm.dated, informix_stkhstm.dated, informix_stkhstm.*
FROM informix_stkhstm
WHERE (((informix_stkhstm.dated)=DateValue("17/FEB/2004")));
Reply With Quote
  #2 (permalink)  
Old 02-25-04, 08:03
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: ODBC--call failed

Quote:
Originally posted by kelvinpuk
I've linked my IDS 9.3 table into Access 2000 database and get an error when executing the following query.

SELECT informix_stkhstm.dated, informix_stkhstm.dated, informix_stkhstm.*
FROM informix_stkhstm
WHERE (((informix_stkhstm.dated)=#2/17/2004#) AND ((informix_stkhstm.dated)=DateValue("17/FEB/2004")));

informix_stkhstm.dated)=#2/17/2004# causes error message
Invalid month in date (#-1205).

My Client Locale is en_US.CP1252 so is my Database Locale.

The following query works fine.

SELECT informix_stkhstm.dated, informix_stkhstm.dated, informix_stkhstm.*
FROM informix_stkhstm
WHERE (((informix_stkhstm.dated)=DateValue("17/FEB/2004")));
Hi,
Please test in the Client, the environment variable DBDATE. (setnet32) or definition to ODBC drive.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 03-02-04, 08:12
kelvinpuk kelvinpuk is offline
Registered User
 
Join Date: Jul 2003
Posts: 23
Talking

Thanks Gustavo that worked a treat.

Kelvin
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