Page 1 of 1

Asynchronous queries in UniDAC

Posted: Tue 01 Mar 2011 03:30
by LIX
Hello, I'm examining UniDAC and have a couple of questions about TUniQuery.
1) TADOQuery has a property ExecuteOptions which is a set of eoAsyncExecute, eoAsyncFetch, eoAsyncFetchNonBlocking, eoExecuteNoRecords. Does TUniQuery support similar functionality for asynchronous execution? If it does, then how can I turn these options on and off?
2) TADOQuery also does have a property CursorLocation which can be set to client side or server side. What is the analogous property of TUniQuery?
Is there any functionality of TADOQuery which TUniQuery doesn't have support of?
Thanks in advance.

Posted: Wed 02 Mar 2011 11:23
by AndreyZ
Hello,

1) UniDAC doesn't have equivalent for the ExecuteOptions property in ADO, but you can use the FetchAll and NonBlocking properties to obtain similar functionality.
2) UniDAC doesn't have any equivalent for the CursorLocation property, because the location of a cursor is defined by its name. If you want to work with cursors, you should use specific components, for example, SQL Server Data Access Components. There is the CursorType property in the TCustomMSDataSet components.

Posted: Wed 16 Mar 2011 05:48
by LIX
Hi again.
May be a silly question, but... where is located this Nonblocking property, you were talking about? Documentation says TUniQuery doesn't have anything like that. And also there is nothing in help on SpecificOptions. So I'm kinda confused.

Posted: Wed 16 Mar 2011 12:52
by AndreyZ
Sorry, for the time being TUniQuery doesn't have the NonBlocking property. This property is available in server-specific DAC products, for example, in SDAC. We will investigate the possibility of adding this functionality in the future.