CursorLocation Property (ADO)
         Sets or returns the location of the cursor engine.Settings And Return ValuesSets or returns a Long value that can be set to one of the following constants.Constant Description 
adUseNone No cursor services are used. (This constant is obsolete and appears solely for the sake of backward compatibility.) 
adUseClient Uses client-side cursors supplied by a local cursor library. Local cursor engines often will 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. 
adUseServer Default. Uses data-provider– or driver-supplied cursors. These cursors are sometimes very flexible and allow for additional sensitivity to changes others make to the data source. However, some features of the Microsoft Client Cursor Provider (such as disassociated recordsets) cannot be simulated with server-side cursors and these features will be unavailable with this setting. 
ResThis 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 affects connections established only after the property has been set. Changing the CursorLocation property has no effect on existing connections.This property is read/write on a Connection or a closed Recordset, and read-only on an open Recordset.Connection.Execute cursors will inherit this setting. Recordsets will automatically inherit this setting from their associated connections.Remote Data Service Usage   When used on a client-side (ADOR) Recordset or Connection object, the CursorLocation property can only be set to adUseClient.

解决方案 »

  1.   

    adUseClient 使用由本地游标库提供的客户端游标。本地游标服务通常允许使用的许多功能可能是驱动程序提供的游标无法使用的,因此使用该设置对于那些将要启用的功能是有好处的。AdUseClient 具有向后兼容性,也支持同义的 adUseClientBatch。 adUseServer 默认值。使用数据提供者的或驱动程序提供的游标。这些游标有时非常灵活,对于其他用户对数据源所作的更改具有额外的敏感性。但是,Microsoft Client Cursor Provider(如已断开关联的记录集)的某些功能无法由服务器端游标模拟,通过该设置将无法使用这些功能。