CursorDriver Property (Remote Data)

       

Returns or sets a value that specifies the type of cursor to be created.

Syntax

object.CursorDriver [= value]

The CursorDriver property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An Integer or constant as described in Settings.

Settings

Constant Value Description
rdUseIfNeeded 0 The ODBC driver will choose the appropriate style of cursors. Server-side cursors are used if they are available.
rdUseOdbc 1 RemoteData will use the ODBC cursor library.
rdUseServer 2 Use server-side cursors.
rdUseClientBatch 3 RDO will use the optimistic batch cursor library.

Remarks

The CursorDriver property only affects connections established after the CursorDriver property has been set — the property is read-only on existing connections.

When the initial (default), and each subsequent rdoEnvironment object is created, the CursorDriver property is set from the rdoEngine object's rdoDefaultCursorDriver property which is set using the same constants.

Choosing a Cursor Driver

Choosing the right cursor driver can have a significant impact on the overall performance of your application, what resources are consumed by the cursor, and limit the type or complexity of the cursors you create. Each type of cursor has its own benefits and limitations. In many cases, the best choice is no cursor at all because your application often does not need to scroll through the data or perform update operations against a keyset.

The following paragraphs outline the functionality and suggested purposes for each of the cursor types.