Detailed description of the Recordset object method

Source: Internet
Author: User
Tags readable
Open Method
Recordset. Open Source, ActiveConnection, CursorType, LockType, Options
Source
The Recordset object can be connected to the Command object through the Source attribute. The Source parameter can be a Command object name, an SQL Command, a specified data table name, or a Stored Procedure. If this parameter is omitted, the system uses the Source attribute of the Recordset object.
ActiveConnection
The Recordset object can be connected to the Connection object through the ActiveConnection attribute. ActiveConnection can be a Connection object or a string containing the database Connection information (ConnectionString.
CursorType
The CursorType parameter of the Open method of The Recordset object indicates the type of cursor to start data, including adOpenForwardOnly, adOpenKeyset, adOpenDynamic, and adOpenStatic, which are described as follows:
Constant value description
AdOpenForwardOnly 0 default value, start a Forward-Only cursor (Forward Only)

AdOpenKeyset 1 starts a Keyset type cursor
AdOpenDynamic 2 starts a Dynamic type cursor
AdOpenStatic 3 starts a Static cursor
The preceding cursor types directly affect all attributes and methods of The Recordset object. The following lists the differences between them.
Recordset attribute adOpenForwardOnly adOpenKeyset adOpenDynamic adOpenStatic
AbsolutePage does not support read/write.
AbsolutePosition does not support read/write.
ActiveConnection can be read/written or read/write
BOF read-only
Bookmark does not support read/write.
CacheSize: readable/writable
CursorLocation: readable/writable
CursorType can be read/written or read/write
EditMode read-only
EOF read-only
The Filter can read and write, and can read and write.
LockType: readable/writable
MarshalOptions: readable/writable
MaxRecords
PageCount does not support read-only and read-only
PageSize: readable/writable
RecordCount does not support read-only and read-only
Source: readable/writable
State read-only
Status read-only
AddNew support
Support for CancelBatch
Supported CancelUpdate

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.