Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix DSNLess Connection MTS

Status
Not open for further replies.

KoteshM

Programmer
Jul 25, 2001
2
US
I have tried to open a DSN less connection from a VB6 program to connect to an Informix database. The connection is opened if I do this from a VB app.

The code I have used is as follows.

conn.Provider = "MSDASQL.1"

conn.ConnectionString = "UID=userid;PWD=password;DB=phase1;HOST=10.12.1.32;SRVR=phase1_soc;SERV=1984;PRO=olsoctcp;Driver={INFORMIX 3.30 32 BIT};DSN='';"

conn.Open

But when I connect using the same code through a Dll made using VB6 I am not able to connect to the database.

I am using a Informix 3.3 Client SDK.

Pl. advise on how I will be able to connect using a dll.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top