1

I was testing my code by disabling MSDTC and wanted to make sure that no transaction within my code gets escalated(Trace why a transaction is escalated to DTC). Now the code seems to work fine and there isn't any peoblem related to DTC. Should I be comfortable with it, that the code will work fine and there will be no escalation when it is deployed. It will be deployed on SQL Azure, and EF 4.5 is being used for Data Access.

According to this post TransactionScope automatically escalating to MSDTC on some machines? that SQL Server 2008 can use multiple connection without escalating, I just wanted to be sure if it applies for SQL Azure as well.

Any suggestion will be highly appreciated.

Thanks

4

1 回答 1

2

我们在 Azure 中也遇到过这个问题。在过去几个月中,我们调查它的经验是一致的:

在您的开发机器上禁用 MSDTC,如果您的代码在连接到 SQL 2008 时可靠运行,您将不会在部署中看到问题。我们的 Web 应用程序每天有多达 30 万的独立访问者,当我们在本地修复它时,我们从未在实时环境中看到过这个问题。

于 2013-06-03T13:52:36.973 回答