Informix connection string

Posted on 2004-11-08
Last Modified: 2008-01-09
I have created an ODBC connection for Informix using IBM INFORMIX 3.82 32 BIT driver
Below is the ODBC details.

Data Source Name : abc_x
Server Name : abc_x
Host Name :
Service : abc_s
Protocol : onsoctcp
Database Name : abc
User ID : user1
Password : pwd1

How does my connection string look like below?

Set objConn = server.createobject("Adodb.Connection")
objConn.Open <Connection String>
strSQL = "select top 100 * from table1"
Set rs = objConn.Execute(strSQL)
Question by:showbix

    Accepted Solution

    "Dsn='';Driver={INFORMIX 3.82 32 BIT};Host=hostname;Server=myserver;Service=service-name;Protocol=olsoctcp;Database=mydb;UID=username;PWD=myPwd
    LVL 4

    Assisted Solution

    strConn = "Driver={Informix}; Server=[server_name];
    Database=[database_name]; UID=[username]; PWD=[password]"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction After workin in a plethora of programming languages like C, Pro*C, ESQL/C, C++, VC++, VB, Java, HTML,JavaScipt etc, technologies and frameworks like JSP, Servlets, Struts, Spring, IBatis etc and databases like MS Access, SQLServer, Inf…
    I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now