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 > Informix IDS ODBC connection issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-09, 11:55
stubborne stubborne is offline
Registered User
 
Join Date: Dec 2009
Posts: 1
Informix IDS ODBC connection issue

Informix ODBC 3.50 (trial and demo download)

Informix setenv:
# Environment variables for Informix IDS
DB_LOCALE=en_us.utf8

When I create a new DSN, the default db_locale = en_US.819 and when i test my connection i get "cannot connect" and then get "database locale on environment page is not the same as the database locale of the database". I try to reconfigure with the db_locale en_us.utf8 and I get the same error. Any suggestions?

Thanks - Stu
Reply With Quote
  #2 (permalink)  
Old 12-05-09, 08:03
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
First you need to identify what locale are you database (use the dbaccess for this):
Code:
echo "select * from sysdbslocale " | dbaccess sysmaster
Variable DB_LOCALE must be set on the server, at the client side you need to use the variable CLIENT_LOCALE

obs.: the DB_LOCALE/CLIENT_LOCALE must be set in the ODBC configuration, the ODBC ignores the values defined in the setnet32 and enviroment variables: Database Locale
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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