• <legend id='X4Iz2'><style id='X4Iz2'><dir id='X4Iz2'><q id='X4Iz2'></q></dir></style></legend>

    1. <tfoot id='X4Iz2'></tfoot>
        • <bdo id='X4Iz2'></bdo><ul id='X4Iz2'></ul>

        <small id='X4Iz2'></small><noframes id='X4Iz2'>

      1. <i id='X4Iz2'><tr id='X4Iz2'><dt id='X4Iz2'><q id='X4Iz2'><span id='X4Iz2'><b id='X4Iz2'><form id='X4Iz2'><ins id='X4Iz2'></ins><ul id='X4Iz2'></ul><sub id='X4Iz2'></sub></form><legend id='X4Iz2'></legend><bdo id='X4Iz2'><pre id='X4Iz2'><center id='X4Iz2'></center></pre></bdo></b><th id='X4Iz2'></th></span></q></dt></tr></i><div id='X4Iz2'><tfoot id='X4Iz2'></tfoot><dl id='X4Iz2'><fieldset id='X4Iz2'></fieldset></dl></div>

        sql server 的连接字符串中的 Enlist=false 是什么意思?

        时间:2023-10-06
        <i id='mBago'><tr id='mBago'><dt id='mBago'><q id='mBago'><span id='mBago'><b id='mBago'><form id='mBago'><ins id='mBago'></ins><ul id='mBago'></ul><sub id='mBago'></sub></form><legend id='mBago'></legend><bdo id='mBago'><pre id='mBago'><center id='mBago'></center></pre></bdo></b><th id='mBago'></th></span></q></dt></tr></i><div id='mBago'><tfoot id='mBago'></tfoot><dl id='mBago'><fieldset id='mBago'></fieldset></dl></div>

          <bdo id='mBago'></bdo><ul id='mBago'></ul>

                <tbody id='mBago'></tbody>
              <tfoot id='mBago'></tfoot>

                  <small id='mBago'></small><noframes id='mBago'>

                  <legend id='mBago'><style id='mBago'><dir id='mBago'><q id='mBago'></q></dir></style></legend>
                • 本文介绍了sql server 的连接字符串中的 Enlist=false 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是 .net 的初学者.我遇到了以下错误的问题

                  I am a beginner with .net. I faced issue with the following error

                  无法执行事务操作,因为有待处理的请求正在处理此事务.".

                  "The transaction operation cannot be performed because there are pending requests working on this transaction.".

                  我在博客的某处读到.我在我的连接字符串中添加了 enlist=true,问题得到了解决.

                  i read somewhere in the blog .i appended my connection string with enlist=true and the issue was resolved.

                  注意:我正在将我的数据库从 sql server 2005 升级到 sql server 2008R2.

                  Note: i am upgrading my DB from sql server 2005 to sql server 2008R2.

                  请帮助理解使用 enlist 的重要性.

                  Please help to understand the importance of using enlist.

                  推荐答案

                  登记是 分布式事务

                  Connection 对象将自动加入现有的分布式事务,如果它确定事务处于活动状态.打开连接时发生自动事务登记或从连接池中检索.您可以禁用自动登记通过将 Enlist=false 指定为连接,在现有事务中SqlConnection 的字符串参数,或 OLE DB Services=-7 作为OleDbConnection 的连接字符串参数.

                  The Connection object will automatically enlist in an existing distributed transaction if it determines that a transaction is active. Automatic transaction enlistment occurs when the connection is opened or retrieved from the connection pool. You can disable auto-enlistment in existing transactions by specifying Enlist=false as a connection string parameter for a SqlConnection, or OLE DB Services=-7 as a connection string parameter for an OleDbConnection.

                  注意在调用 EnlistDistributedTransaction 之前,连接必须是 open.

                  Note The Connection must be open before calling EnlistDistributedTransaction.

                  以下是 Enlist=False;

                  这篇关于sql server 的连接字符串中的 Enlist=false 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 Max+1 创建用户友好的唯一序列号的替代方法 下一篇:为什么这个 (null || !TryParse) 条件会导致“使用未分配的局部变量"?

                  相关文章

                  <i id='saOoE'><tr id='saOoE'><dt id='saOoE'><q id='saOoE'><span id='saOoE'><b id='saOoE'><form id='saOoE'><ins id='saOoE'></ins><ul id='saOoE'></ul><sub id='saOoE'></sub></form><legend id='saOoE'></legend><bdo id='saOoE'><pre id='saOoE'><center id='saOoE'></center></pre></bdo></b><th id='saOoE'></th></span></q></dt></tr></i><div id='saOoE'><tfoot id='saOoE'></tfoot><dl id='saOoE'><fieldset id='saOoE'></fieldset></dl></div>

                  <small id='saOoE'></small><noframes id='saOoE'>

                  <tfoot id='saOoE'></tfoot>
                • <legend id='saOoE'><style id='saOoE'><dir id='saOoE'><q id='saOoE'></q></dir></style></legend>

                      <bdo id='saOoE'></bdo><ul id='saOoE'></ul>