Recordset. Open Method Parameters

Source: Internet
Author: User

Recordset. Open parameter description

Syntax:
Recordset. Open source, activeconnection, cursortype, locktype, options

Parameter description:
Source (optional) is a variant that calculates the variable name, SQL statement, table name, stored procedure call, or persistent recordset File Name of the command object. Activeconnection is optional. Calculates the variable name of the valid connection object, or a string that contains the connectionstring parameter.
Cursortype (optional) value of cursortypeenum to determine the type of cursor that the provider should use when opening the recordset.
Can be one of the following constants (see the cursortype attribute for definitions of these settings ).
Description of value Constants
---------------------------------------------
0 adopenforwardonly default value) open only forward type cursor.
1 adopenkeyset open the keyset type cursor.
2 adopendynamic open the dynamic type cursor.
3. Open the static type cursor in adopenstatic.

Locktype is optional. Determine the locktypeenum value of the lock (concurrent) type that the provider should use when opening the recordset. It can be one of the following constants (see the locktype attribute for details ).
Description of value Constants
----------------------------------------------------------
1 adlockreadonly (default) read-only-data cannot be changed.
2 adlockpessimistic locking: The provider completes the work required to ensure successful record editing, usually by locking the records of the data source at the time of editing.
3 adlockoptimistic open locks (one by one)-The provider uses open locks to lock records only when the update method is called.
4 adlockbatchoptimistic open batch Update-used in batch update mode (relative to the immediate update mode ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.