PROPERTY:

 

 

 

 

 

 

 

DESCRIPTION:

 

 

Indicates the location of the cursor service.

 

 

 

 

PROPERTY OF:

 

 

ADODatabase

 

 

ADOQuery

 

 

ADOTable

 

 

ADOStoredProc

 

 

ADODataShape

 

 

 

 

 

VALUE:

EFFECT:

 

0

Client (Use the Microsoft client cursor) (Default)

 

1

Server (Use the cursor support supplied by the data provider)

 

2

None (Not use the cursor services)

 

 

 

DESCRIPTION:

 

 

The cursorLocation 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.

 

A cursor is used to : control record navigation, control the visibility of changes in the database, control the updatability of data.

 

 

 

A client-side cursor offers more flexibility. All data is retrieved to the local machine and then operated on there,

 

allowing operations not normally supported by servers like sorting and resorting the data and additional filtering.

 

SQL statements are executed at the server, so for statements that restrict the result set with a WHERE clause, only the reduced result set is retrieved to a local cursor.

 

 

 

A server-side cursor offers less flexibility, but may be more advantageous (or necessary) for large result sets. 

 

Using a server-side cursor becomes necessary when the sheer size of a result set exceeds the available disk space that would be needed to create the client-side cursor.

 

Also, many servers only support unidirectional cursors. This would preclude moving the record pointer in the dataset backward (even one record) through the result set.

 

 

 

The cursorLocation property setting affects connections established only after the property has been set.

 

Changing this property has no effect on existing connections.

 

 

 

A data-source objects inherits the cursorLocation property setting from the associated ADODatabase object. 

 

For the directly returning of data from the ADODatabase (executeSQL() and getSchema() methods) the location of cursor determine what

 

 

cursor type will be used by default (usually the Static or Forward-only type of cursor). 

 

 

 

 

This property is read/write on a ADODatabase object.

 

This property is read-only on an open data-source objects.