Use Dynamic Cursors

Advantage Database Server

Default is to use dynamic cursors.

A dynamic cursor is one that is updated to reflect changes to the underlying table. When dynamic cursors are turned on, changes made by any user to the underlying table are reflected in all Advantage Optimized Filters (AOFs) set on that table by other users. If dynamic cursors are turned off, the only changes made to an Advantage Optimized Filter are changes that are made to the table by the owner of the Advantage Optimized Filter. Because many optimizations by the SQL engine are performed through Advantage Optimized Filters, this setting can affect SQL statements as well. Turning dynamic cursors off may increase performance when AOFs are set on the table in which records are being modified. See Differences Between AOFs and Traditional Record Filters.

To turn off dynamic cursors, perform one of the following.

For NetWare:

Add the following line in the Advantage Database Server configuration file (ADS.CFG).

USE_DYNAMIC_CURSORS=0

For Windows NT/2000/2003:

Add the following DWORD using the Registry Editor (REGEDIT.EXE) into the registry.

\\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Advantage\Configuration\USE_DYNAMIC_CURSORS=0

Note If setting filters manually (not using SQL) this behavior does not need to be modified at the server level (globally). Multiple filter types exist, which can modify the filter behavior at the work area level. See the Delphi TAdsDataSet.Filter documentation or the ACE AdsSetAOF documentation for details.