Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 06: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, 11: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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On