msdtc

Why isn't Snapshot isolation supported with Distributed Transactions in SQL Server

本秂侑毒 提交于 2020-01-05 17:57:13
问题 Question is in the title. I'd just love to understand why this isn't supported? Just to clarify this is MS Sql Server 2005 / 2008. 回答1: Because it's potentially inconsistent and it's weaker out of the box than lock-based isolation (ANSI SQL). Or, the downsides (such as this banking example) require more work and thinking to keep things correct so it's simply safer not to support it. Finally (I've not checked), is it in the ANSI standard? It could be a very bespoke solution and you'd be unable

MSDTC and firewall [closed]

旧时模样 提交于 2020-01-01 08:19:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for

MSDTC and firewall [closed]

∥☆過路亽.° 提交于 2020-01-01 08:19:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for

Does ADO Entity Framework support non DTC transactions? Multiple queries inside one EntityContext and one TransactionScope is causing DTC promotion

做~自己de王妃 提交于 2020-01-01 06:37:47
问题 I have a web application that uses the Entity Framework - we make use of the TransactionScope class to provide ambient transactions. Is there any way to tell EF to use a standard T-SQL transaction in preference to DTC transaction? Quite often we make a number of queries to different tables inside one EntityContext and one TransactionScope instance, however this seems to always promote the transaction to DTC I have put a short example together, see below. The query to the individual table

MSDTC - how many ports are needed

孤人 提交于 2020-01-01 02:07:09
问题 I have a considerably large application that uses MSDTC. How many ports should I open? Is there any way to determine it? EDIT: I know what ports I need to open, I don't know how many I need. 回答1: I think Migol wants to know how big the range of the RPC dynamic port allocation should be. In the KB they mention a minimum of 100 ports Furthermore, previous experience shows that a minimum of 100 ports should be opened, because several system services rely on these RPC ports to communicate with

MVC 3 : The MSDTC transaction manager was unable to pull the transaction from the source

痴心易碎 提交于 2019-12-30 08:01:52
问题 I am using MVC 3 with Entities, now I have used the below line of codes from my controller using (var scope = new TransactionScope()) { _myRepository.DeleteFM1(id); _myRepository.DeleteFM2(id, name); scope.Complete(); } and inside my DeleteFM2 method which happens to be my method defined in the Entity class is as follows : public void DeleteFM2(int id, string name) { var data= _repositoryMD.Fetch().Where(mColl => mColl.Col1 == id); if (data!= null) { //insert here is giving some error MSDTC

EF Core: Use Linked Server to Oracle database issue

允我心安 提交于 2019-12-25 00:06:08
问题 In another question, I need to use ASPNET BoilerPlate (EF Core template) with the Oracle database but it does not support so far. So I tried to use SQL Server with Linked Server to Oracle database. What I have tried: Create Linked Server named "LinkedOracle" from SqlServer to Oracle database Create a SqlServer database named "FakeOracleDb" and create Views to LinkedOracle tables by: CREATE VIEW CUSTOMER AS SELECT * FROM LinkedOracle..MYUSER.CUSTOMER Now I have a fake SQL Server database that

Distributed Transaction Coordinator - The underlying provider failed on Open

故事扮演 提交于 2019-12-24 13:35:10
问题 I have application A and application B, both on the same server. Application A is calling WCF service, located in application B using netmsmqbinding and a private queue. B's service method, which is called, is using entity framework to make a call to the database. However, this exception is thrown in B: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Transactions.TransactionManagerCommunicationException: Communication with the underlying

Does ObjectContext.Connection.BeginTransaction() use MSDTC?

十年热恋 提交于 2019-12-24 00:19:07
问题 I want confirm if the Transaction that Entity Framework's ObjectContext.Connection.BeginTransaction() method returns uses the support of MSDTC (Microsoft Distributed Transaction Coordinator) or not? Is there any way to use transactions without support of MSDTC? 回答1: It will automatically promote to a transaction coordinated by MSDTC under certain conditions. Each time you call ObjectContext.SaveChanges() a new transaction is created if there isn't already one in scope (if there is already an

NServiceBus: System.Transactions.TransactionException: The partner transaction manager has disabled its support for remote/network transactions

我只是一个虾纸丫 提交于 2019-12-23 20:08:36
问题 I am getting this exception on my subscriber when I try to save a record to a database from within my Handle(T value) method in my IHandleMessages implementation. Does anyone know why that would happen? I think I remember that NServiceBus uses distributed transactions to make the handling of messages transactional, but I have no idea why it doesn't just "work" after running the "RunMeFirst.bat" file on both machines. Any ideas? 回答1: Found the answer. It looks like I needed to enable the