ONE Active Server Pages Product Home Page Developer Site Version


ADO Connection Object CursorLocation Property

Sets or returns the location of the cursor engine.

CursorLocation Property Return Values (ADO Connection Object)

Sets or returns a Long value that can be set to one of the following constants:

Uses client-side cursors supplied by a local cursor library. Local cursor engines will often allow many features that driver-supplied cursors may not, so using this setting may provide an advantage with respect to features that will be enabled. For backward-compatibility, the synonym adUseClientBatch is also supported.
Note: With the Sun ONE ASP implementation of ADO, adUseClient has a value of 1, and adUseClientBatch has a value of 3.
Default. Uses data provider or driver-supplied cursors. These cursors are sometimes very flexible and allow for some additional sensitivity to reflecting changes that others make to the actual data source. However, some features of the Microsoft Client Cursor Provider (such as disassociated recordsets) cannot be simulated.
Note: With the Sun ONE ASP implementation of ADO, adUseServer has a value of 2.

CursorLocation Property Remarks (ADO Connection Object)

This property allows you to choose between various cursor libraries accessible to the provider. Usually, you can choose between using a client-side cursor library or one that is located on the server.

This property setting only affects connections established after the property has been set. Changing the CursorLocation property has no effect on existing connections.

This property is read/write on a Connection.

CursorLocation Property Example (ADO Connection Object)

See the AbsolutePosition property example.