Re: Problem connecting via ADO
Posted in 2003
Topics: Connectivity: ODBC / JDBC / .NET, Security, Permissions & Auditing, Networking & sqlhosts Configuration
I think I have the setnet32 utility configured correctly. The service name is 'sqlexec'. When using the following in the VB code I get the error: [Microsoft][ODBC Driver Manager]Datasource name not found and no default driver specified. .ConnectionString = "Provider=MSDASQL; DRIVER={INFORMIX 3.82 32 BIT}; " _ & "DB=databasename; HOST=sql_dev; " _ & "SRVR=ONLINE; SERV=sqlexec; PRO=onsoctcp; " _ & "UID=username; " _ & "PWD=password; " This would be my preferred method of connection if I can get it to work. I am using the latest Informix Connect. Thanks for the help. - Phil
phil@lawbase.com (Phil Homburger) wrote in message news:<460d84e1.0308010701.29c93349@posting.google.com>... > I think I have the setnet32 utility configured correctly. The service > name is 'sqlexec'. > > When using the following in the VB code I get the error: > [Microsoft][ODBC Driver Manager]Datasource name not found and no > default driver specified. > > .ConnectionString = "Provider=MSDASQL; DRIVER={INFORMIX 3.82 32 > BIT}; " _ > & "DB=databasename; HOST=sql_dev; " _ > & "SRVR=ONLINE; SERV=sqlexec; PRO=onsoctcp; " > _ > & "UID=username; " _ > & "PWD=password; " > > This would be my preferred method of connection if I can get it to > work. I am using the latest Informix Connect. > > Thanks for the help. > > - Phil Try "Driver={INFORMIX 3.82 32 BIT};Host=sql_dev;Server=ONLINE;Service=sqlexec;Protocol=onsoctcp;Database=databasename;UID=username;PWD=pissword" It works fine for me. I think this style of connect string doesn't require any setup in setnet32.
I tried but get the same error message. > > Try "Driver={INFORMIX 3.82 32 > BIT};Host=sql_dev;Server=ONLINE;Service=sqlexec;Protocol=onsoctcp;Database=databasename;UID=username;PWD=password" > > It works fine for me. I think this style of connect string doesn't > require any setup in setnet32.