Re: Informix + Ole Db extrange problem
Posted in 2009
Topics: Connectivity: ODBC / JDBC / .NET, Security, Permissions & Auditing
Dear All, When tried to connect to informix database from my ASP.Net (2.0) application I received "No error message available, result code: E_UNEXPECTED(0x8000FFFF)." this message. I tried all the connection strings available on the internet to connect to IDS. I am using IBM INFORMIX ODBC DRIVER 3.50.00.13590. Please help me in this regards. I tried the following connection strings..... Dim cn As New System.Data.OleDb.OleDbConnection 1. 'cn.ConnectionString = "DSN=cms_net;UID=root;PWD=root;Provider=""IBM INFORMIX OLEDB DRIVER""" 2. 'cn.ConnectionString = "Provider=Ifxoledbc.2;Password=root;Persist Security Info=True;User ID=root;Data Source=cms@0850FMJ01M" 3. 'cn.ConnectionString = "Provider=Ifxoledbc.2;Persist Security Info=False;User ID=root;Data Source=cms_net;Extended Properties=""DSN=cms_net;UID=root;DATABASE=cms;HOST=0850FMJ01M;SRVR=cms_net;SERV =50000;PRO=olsoctcp;CLOC=en_US.CP1252;DLOC=en_US.819;VMB=0;CURB=48;OPT=0;SCUR=0; ICUR=0;OAC=1;OPTOFC=0;RKC=0;ODTYP=0;DDFP=0;DNL=0;""" 4. 'cn.ConnectionString = "Provider=Ifxoledbc;Data Source=cms@0850FMJ01M;User ID=root;Password=root;" 5. cn.ConnectionString = "Dsn=cms_net;Provider=Ifxoledbc;Driver={INFORMIX 3.30 32 BIT};Host=0850FMJ01M;Server=172.23.9.211;Service=50000;Protocol=olsoctcp;Databas e=cms;Uid=root;Pwd=root;" cn.Open()
Regards. 1) You said you´re trying to connect via ODBC, but your string says: OLEDB provider. 2) In case you want to use OLEDB, you need to run a script on your Informix instance, to enable it. 3) In case you need ODBC, just create the DSN driver, on windows, and use the correct kind of string, ok? (I´m guessing that your provider is wrong, but the following link could help you on this) OLEDB: http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.relnotes.doc /csdk_350xc5/clientrel.html?resultof=%22%6f%6c%65%64%62%22%20%22%70%72%6f%76%69% 64%65%72%22%20 ODBC: http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.odbc.doc/sii 011002477.htm?resultof=%22%6f%64%62%63%22%20 Hope it helps. Alexandre Marini Tecnologia da Informação - DBA SEFAZ-MS / SGI-UIMP / Sistemas IBM-Informix IIUG Member <http://www.iiug.org> ANUJ VAIJAPURKAR escreveu: > Dear All, > When tried to connect to informix database from my ASP.Net (2.0) application I > received "No error message available, result code: E_UNEXPECTED(0x8000FFFF)." > this message. > I tried all the connection strings available on the internet to connect to > IDS. > I am using IBM INFORMIX ODBC DRIVER 3.50.00.13590. > Please help me in this regards. > > I tried the following connection strings..... > > Dim cn As New System.Data.OleDb.OleDbConnection > 1. 'cn.ConnectionString = "DSN=cms_net;UID=root;PWD=root;Provider=""IBM > INFORMIX OLEDB DRIVER""" > 2. 'cn.ConnectionString = "Provider=Ifxoledbc.2;Password=root;Persist Security > Info=True;User ID=root;Data Source=cms@0850FMJ01M" > 3. 'cn.ConnectionString = "Provider=Ifxoledbc.2;Persist Security > Info=False;User ID=root;Data Source=cms_net;Extended > Properties=""DSN=cms_net;UID=root;DATABASE=cms;HOST=0850FMJ01M;SRVR=cms_net;SERV =50000;PRO=olsoctcp;CLOC=en_US.CP1252;DLOC=en_US.819;VMB=0;CURB=48;OPT=0;SCUR=0; ICUR=0;OAC=1;OPTOFC=0;RKC=0;ODTYP=0;DDFP=0;DNL=0;""" > > 4. 'cn.ConnectionString = "Provider=Ifxoledbc;Data Source=cms@0850FMJ01M;User > ID=root;Password=root;" > 5. cn.ConnectionString = "Dsn=cms_net;Provider=Ifxoledbc;Driver={INFORMIX 3.30 > 32 > BIT};Host=0850FMJ01M;Server=172.23.9.211;Service=50000;Protocol=olsoctcp;Databas e=cms;Uid=root;Pwd=root;" > > cn.Open() > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > > >