Link to home
Start Free TrialLog in
Avatar of afpcos
afpcos

asked on

ADO.NET Errors

I have several database access classes that prepare SQSL statements using the ODBCCommand object.  Whenever the client needs data, these prepared command objects are executed using an OdbcDataAdapter to fill a DataSet.  I can execute the same ODBCCommand over and over again, sometimes it works, sometimes it does not and it never happens at the same time.  On error I get is "Service already in progress" on the line of code that uses the ODBCDataAdapter to fill a data set.  Sometimes I get an error "The connection is dead."

Can anyone help???????
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Sometimes I fine that OleDb works better.
What type of database are you connecting to?

Bob
Avatar of afpcos
afpcos

ASKER

Bob,

We are using an Informix 9.X database.
My suggestion would be to use a managed .NET provider to connect to Informix, versus using ODBC.  You will be much happier with the performance.

OpenLink Software:
http://uda.openlinksw.com/ado.net/mt/dotnet-informix-mt/

Bob
Avatar of afpcos

ASKER

The solution wound up being to check a check box under the advanced options of the odbc driver in question to "Open-Fetch-Close Optimization".  I still do not understand why this has appeared to fix the problem.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial