DEX3 SQL server transaction bug

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cgkls
Posts: 5
Joined: Fri 04 Oct 2013 14:10

DEX3 SQL server transaction bug

Post by cgkls » Fri 04 Oct 2013 16:07

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.

AndreyZ

Re: DEX3 SQL server transaction bug

Post by AndreyZ » Mon 07 Oct 2013 12:48

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

cgkls
Posts: 5
Joined: Fri 04 Oct 2013 14:10

Re: DEX3 SQL server transaction bug

Post by cgkls » Mon 07 Oct 2013 13:49

Thank you, this is the good solution.

AndreyZ

Re: DEX3 SQL server transaction bug

Post by AndreyZ » Tue 08 Oct 2013 08:06

Feel free to contact us if you have any further questions about UniDAC.

Post Reply