Board index » delphi » Hstmt error : Connection is busy

Hstmt error : Connection is busy


2007-01-06 02:04:39 AM
delphi186
Hi every one,
Since few days we are facing error that connection is busy with result
set of another hstmt in our Delphi Application EXE. As far as i know if
we open two query at same time and those two query component uses the
same TDatabase component this error may occur. I am using same
Tdatabase component in the whole application. But in my problem, we
have different SQL database for different clients. EXE connects to
Database using ODBC DSN and BDE. On one database when i run EXE i get
this error. but if i change ODBC configuration and point DSN to new
database. Now this error is not comming. I need to find the reason for
that as this error is also occuring at our client end.
If any one has ever face such error... Please help me out
Thanks,
Divyesh
 
 

Re:Hstmt error : Connection is busy

Am 5 Jan 2007 10:04:39 -0800 schrieb XXXX@XXXXX.COM:
Quote
Hi every one,

Since few days we are facing error that connection is busy with result
set of another hstmt in our Delphi Application EXE. As far as i know if
we open two query at same time and those two query component uses the
same TDatabase component this error may occur. I am using same
Tdatabase component in the whole application. But in my problem, we
have different SQL database for different clients. EXE connects to
Database using ODBC DSN and BDE. On one database when i run EXE i get
this error. but if i change ODBC configuration and point DSN to new
database. Now this error is not comming. I need to find the reason for
that as this error is also occuring at our client end.

If any one has ever face such error... Please help me out


Thanks,
Divyesh
This has to do with BDE, or better, because using of server side cursor
(standard BDE behaviour). SQL Server has problems when one query is still
open, did not fetch all data and then another query will do the same.
In SQL2005 there is something new for this, called MARS (for example:
blogs.msdn.com/dataaccess/archive/2005/08/02/446894.aspx).
I am a long time away from BDE, so i don't know what to do in BDE. You have
to find a way, that the query always fetch all data at once, but this will
slow down application when resultset is big.
bye,
helmut