SQL Server connection string

Source: Internet
Author: User
Tags sql server connection string

Initial catalog = northwind; Data Source = localhost; connection timeout = 30; user id = myuser; Password = password; min pool size = 20; Max pool size = 200; incr pool size = 10; decr pool size = 5;

When the window Authentication mode is used, a connection pool is created for each window user. When the SQL Server Authentication mode is used, the system maintains only one connection pool as long as the connection string is the same, therefore, when using the SQL Server Identity Authentication mode, performance is better.

Connection lifetime
0
When the database connection is returned to the connection pool, its creation time will be compared with the current time. If it exceeds the time specified by connection lifetime, it will be released.
If the value is 0, it is considered as the maximum connection time.

Enlist
'True'
When this value is true, all existing database connections in the pool will be added to the transaction context of its creation thread. If the transaction context does not exist, no changes are made.

Max pool size
100
The maximum number of database connections that can be established in the connection pool.

Min pool size
0
The minimum number of database connections to be maintained in the connection pool.

Pooling
'True'
When set to true, the database connection is managed by the corresponding connection pool.

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.