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 error when using ADODB.connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-02, 13:17
Alpine Alpine is offline
Registered User
 
Join Date: Oct 2002
Posts: 4
ODBC error when using ADODB.connection

Trying to connect to Informix using VBscript with an ADODB.connection using a DSN or connection string producest these errors

0 [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed IM006 Microsoft OLE DB Provider for ODBC Drivers

-11048 [Informix][Informix ODBC Driver]Unable to load translation DLL. IM009 Microsoft OLE DB Provider for ODBC Drivers

I think the first one is informational only. But the second one? It is definetly not connecting to the DB.

I know the DSN is good.

I have downloaded and installed MDAC. My ODBC version is 3.01.

Any ideas? I'm really stuck.

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-07-02, 14:02
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
What is your environment ? Where are you calling the odbc connection ? Are you using iis/asp ?
Reply With Quote
  #3 (permalink)  
Old 10-07-02, 14:03
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Have you tried using the drivers from the informix client sdk instead ?
Reply With Quote
  #4 (permalink)  
Old 10-07-02, 14:15
Alpine Alpine is offline
Registered User
 
Join Date: Oct 2002
Posts: 4
Quote:
Originally posted by rnealejr
What is your environment ? Where are you calling the odbc connection ? Are you using iis/asp

Have you tried using the drivers from the informix client sdk instead ?
Sorry I wasn't more informative.

Win2000, IE 5.5. Yes I am iis/asp. IIS has scripts enabled.

I'm not sure what you mean by the informix client sdk. I afraid about the only thing I know about informix is how to pass it SQL statements. I am actually a GIS programmer.

I have the Informix directory in the path and INFORMIXDIR as an enviorment variable.

Thanks
Reply With Quote
  #5 (permalink)  
Old 10-07-02, 14:57
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
You can download the informix client sdk from here - it includes drivers for you to connect to informix:

site

The latest version is 2.8.
Reply With Quote
  #6 (permalink)  
Old 10-07-02, 17:08
Alpine Alpine is offline
Registered User
 
Join Date: Oct 2002
Posts: 4
Thumbs up

Quote:
Originally posted by rnealejr
You can download the informix client sdk from here - it includes drivers for you to connect to informix:

site

The latest version is 2.8.
Looks like that did it. Thanks a lot.

Doug
Reply With Quote
  #7 (permalink)  
Old 10-07-02, 19:29
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Happy to help.
Reply With Quote
  #8 (permalink)  
Old 01-09-03, 09:52
Nestar Nestar is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
IBM Informix SDK

Quote:
Originally posted by rnealejr
Happy to help.
I am having the problem with the error "Driver's SQLSetConnectAttr failed". I have downloaded the latest SDK from IBM. I'm using VB6.0 on WinXP to connect to an informix 7.31 DB. When it gets to the DSN I set up using the new driver from IBM(3.81) or the old driver from informix (3.32), it gives me the error. I'm really at a loss here, any help would be appreciated.

TIA,
Howard
Reply With Quote
  #9 (permalink)  
Old 01-09-03, 09:59
Alpine Alpine is offline
Registered User
 
Join Date: Oct 2002
Posts: 4
Re: IBM Informix SDK

Quote:
Originally posted by Nestar
I am having the problem with the error "Driver's SQLSetConnectAttr failed". I have downloaded the latest SDK from IBM. I'm using VB6.0 on WinXP to connect to an informix 7.31 DB. When it gets to the DSN I set up using the new driver from IBM(3.81) or the old driver from informix (3.32), it gives me the error. I'm really at a loss here, any help would be appreciated.

TIA,
Howard
Did you update your MDAC (Microsoft Data Access Componants)? Go to the MS website and do a search on MDAC. The download is free and easy.
Reply With Quote
  #10 (permalink)  
Old 01-09-03, 10:23
Nestar Nestar is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Re: IBM Informix SDK

Quote:
Originally posted by Alpine
Did you update your MDAC (Microsoft Data Access Componants)? Go to the MS website and do a search on MDAC. The download is free and easy.
I updated MDAC, and I'm still getting the same error. It says 2.7, which appears to be the latest, is the version that ships with XP. I'm going to trying installing the MDACSdk and see if that helps.
Reply With Quote
  #11 (permalink)  
Old 01-09-03, 13:08
Nestar Nestar is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Re: IBM Informix SDK

Quote:
Originally posted by Nestar
I updated MDAC, and I'm still getting the same error. It says 2.7, which appears to be the latest, is the version that ships with XP. I'm going to trying installing the MDACSdk and see if that helps.
I fixed the problem. Just FYI, I had to use a connection string instead of a DSN. For example:

Provider=Ifxoledbc;Password=pass;Persist Security Info=True;User ID=user;Data Source=mbay
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