Samuel
10/23/2002 4:03:00 PM
Richard,
I was using OLEDB.NET to access an Informix database. The
OLEDB driver was the one from Client SDK 2.7, then I
migrated the driver to Client SDK 2.8.
In both cases I can do everything with OLEDB (select,
insert, update, delete & transaction), the only problem I
had was when using the system in production environment -
as the IIS server loses the connection to INFORMIX and
the only way to fix this is to reset ISS.
Recently I migrated the whole code to use ODBC.NET and
the IIS server hasn't crashed (yet), but the problem I'm
facing now is to process TRANSACTIONS - as the
application hangs when the code issue the 1st execute
call.
Do you have any experience with ODBC.NET using
TRANSACTIONS? or, Did you experience any kind of IIS
crashing on heavy usage?
Thansk in advance,
Samuel
>-----Original Message-----
>I'm using the native oledb provider from the Informix
>Client SDK 2.7. This way, I don't have to use odbc.net
and
>can use the oledb.net provider instead. It requires some
>minor setup on the db as well as in SetNet32, but makes
>for a better performing connection. Hope this helps.
>
>Regards,
>Richard
>
>
>>-----Original Message-----
>>Has anyone had success retreiving data from Informix
>database?
>>Here is a sample code I am using and I get the
following
>error message when I executer this code
>>"myReader = myCommand.ExecuteReader();"
>>
>>An unhandled exception of
>type 'Microsoft.Data.Odbc.OdbcException' occurred in
>microsoft.data.odbc.dll
>>Additional information: System error.
>>
>>What am I doing wrong?
>>
>>Here is the code I am using:
>>
>>
>> string myConnString = "DSN=InforixDatabase";
>> string mySelectQuery = "SELECT Count(*) from
>Informix.mytable";
>> OdbcConnection myConnection = new OdbcConnection
>(myConnString);
>> OdbcCommand myCommand = new OdbcCommand
>(mySelectQuery,myConnection);
>> myConnection.Open();
>> OdbcDataReader myReader;
>> myReader = myCommand.ExecuteReader(); // <-- this is
>where the error occurs
>>
>>
>>Thanks
>>
>>
>>--
>>Peter
>>pczurak@bigfoot.com
>>
>>
>.
>