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 > connect to informix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-03, 05:32
dolphinzz dolphinzz is offline
Registered User
 
Join Date: Apr 2003
Posts: 3
connect to informix

I use query string

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open = "Dsn='iqdb'; " & _
"Driver={INFORMIX 3.81 32 BIT}; " & _
"Host=name; " & _
"Server=sname; " & _
"Service=sqlturbo; " & _
"Protocol=onsoctcp; " & _
"Database=iqdb; " & _
"UID=user; " & _
"PWD=password"

connect to informix But It's not work.
This is Error Message
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

I use windows XP
Driver Informix 3.81 32 BIT
Who has problem like me or know something to correct it plz tell me.
(This Driver download form www.ibm.com)

I Think I use the wrong query string that not support this driver????
I'm not sure.
Or I must change driver??????......where I can download????

Thank for your help!!
Reply With Quote
  #2 (permalink)  
Old 04-29-03, 10:47
macca macca is offline
Registered User
 
Join Date: Apr 2003
Posts: 54
In order for this connection to work you must have already set up a DSN called "iqdb" on your XP machine. Once you've done this correctly then you only need to quote the DSN name in your connection string as follows:

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open = "Dsn=iqdb"

It's as simple as that.

Good luck.
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