Know-how can be used to supplement the ~sqlserver connection of the multiplexing Multipleactiveresultsets

Source: Internet
Author: User

Back to Catalog

multipleactiveresultsets can make the database connection reusable, but when you're on the Moebius cluster tool, this option doesn't turn on (false by default), and when you use an ORM tool like EF, This option will be added by default, it is to improve the performance of the program, the advantage is that the database connection resources are exhausted, the use of the method is simple, only need to add it to the data connection string.

For example: server= (local); Integrated Security = True;database=test; Multipleactiveresultsets=true;

In the test we released, after adding Multipleactiveresultsets, the number of connections to the same process remains at 1, that is, you open several more of the same program, it is in the SQL sp_who view is also one.

Back to Catalog

Know-how can be used to supplement the ~sqlserver connection of the multiplexing Multipleactiveresultsets

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.