AnyDAC
ContentsIndexHome
PreviousUpNext
TADFetchOptions.AutoFetchAll Property

Controls automatic fetching of all records from a dataset cursor before disconnecting a command.

Group
Links

Use AutoFetchAll property to control automatic fetching of all records from a dataset cursor before disconnecting an associated command. The default value is afAll. A command may be disconnected, when one of the following occurs:

  • A connection object will be set to offline mode.
  • When amount of active commands on the same connection object is greater than TADTopResourceOptions.MaxCursors, then less used commands will be disconnected.
  • On some DBMS's before a transaction, where a cursor was opened, will be committed.

The property may have values:

Value 
Description 
afAll 
FetchAll method will be called. 
afTruncate 
Fetching from the cursor will be finished. Previously fetched records will be preserved. 
afDisable 
Raise an exception, if not all records are fetched. 
property AutoFetchAll: TADAutoFetchAll;
What do you think about this topic? Send feedback!