[ASP. NET decryption Reading Notes] connection pool

Source: Internet
Author: User
Tags sql server connection string connection reset

When using SQL Connection pooling, you can place additional options in a connection string to modify how Connection Pooling works. for example, you can specify the minimum and maximum size of the connection pool or even completely disable Connection pooling.

Here's a list of the Connection Pooling options that you can add to the SQL server connection string:

Connection lifetime-destroys a connection after a certain number of seconds. The default value is 0, which indicates that connections shoshould never be destroyed.

Connection Reset-Indicates whether connections shoshould be reset when they are returned to the pool. The default value is true.

Enlist-Indicates whether a connection shocould be automatically enlisted in the current transaction context. The default value is true.

Max pool size-the maximum number of connections allowed in a single connection pool. The default value is 100.

Min pool size-the minimum number of connections allowed in a single connection pool. The default value is 0.

Pooling-determines whether Connection pooling is enabled or disabled. The default value is true.

 

Related Article

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.