Some tips of transcation

Source: Internet
Author: User
The transaction isolation level provided by DOTNET framework:

Chaos You cannot rewrite the pending changes in a transaction with a higher isolation level.
Readcommitted Keep the shared lock when reading data to avoid dirty reading, but you can change the data before the transaction ends, resulting in non-repeated reading or phantom data.
Readuncommitted Dirty reads are allowed, meaning that shared locks are not published or exclusive locks are not accepted.
Repeatableread Lock all data used in the query to prevent other users from updating the data. Prevents repeated reads, but still supports phantom rows.
Serializable InDatasetTo prevent other users from updating rows or inserting rows into the dataset before the transaction is completed.
Snapshot In an applicationProgramStore the same data version that another application can read when modifying data to reduce blocking. Indicates that you cannot see the changes made in other transactions from one transaction, even if you re-query.
unspecified the isolation level is different from the specified isolation level, but cannot be determined.

when odbctransaction is used, if isolationlevel is not set, or isolationlevel is set to unspecied , transactions are executed based on the default isolation level of the basic ODBC driver.

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.