Page 1 of 1

DEX3 SQL server transaction bug

Posted: Fri 04 Oct 2013 16:07
by cgkls
I have Embarcadero® RAD Studio XE3 Version 17.0.4770.56661 update 2 Delphi
Unidac 46d17 pro

SqlServer 2008R2.

MARS OFF
My program open a few Query and I need to start a transaction.
I have the following message :
EOLEBDError ‘Connection is busy with results for another command’


If I set MARS on I must close all query before start any transaction.

Only a few transaction in my program have this bug. If bug append in a context, it will happen all time.

Re: DEX3 SQL server transaction bug

Posted: Mon 07 Oct 2013 12:48
by AndreyZ
Such problem can occur if there are under-fetched datasets within the connection. No transactions can be started if there are under-fetched datasets within the connection. To avoid the problem, you should set the FetchAll specific option to True (FetchAll is True by default). Here is a code example:

Code: Select all

UniQuery.SpecificOptions.Values['FetchAll'] := 'True';
For more information, please refer to http://www.devart.com/sdac/docs/devart_ ... tchall.htm

Re: DEX3 SQL server transaction bug

Posted: Mon 07 Oct 2013 13:49
by cgkls
Thank you, this is the good solution.

Re: DEX3 SQL server transaction bug

Posted: Tue 08 Oct 2013 08:06
by AndreyZ
Feel free to contact us if you have any further questions about UniDAC.