distributed-transactions

Why does Azure Database perform better with transactions

只愿长相守 提交于 2019-12-21 09:37:38
问题 We decided to use a micro-orm against an Azure Database. As our business only needs "inserts" and "selects", we decided to suppress all code-managed SqlTransaction (no concurrency issues on data). Then, we noticed that our instance of Azure Database responded very slowly. The " rpc completed " event occured in delays that are hundreds times the time needed to run a simple sql statement. Next, we benchmarked our code with EF6 and we saw that the server responded very quickly. As EF6 implements

Why does Azure Database perform better with transactions

谁说胖子不能爱 提交于 2019-12-21 09:36:04
问题 We decided to use a micro-orm against an Azure Database. As our business only needs "inserts" and "selects", we decided to suppress all code-managed SqlTransaction (no concurrency issues on data). Then, we noticed that our instance of Azure Database responded very slowly. The " rpc completed " event occured in delays that are hundreds times the time needed to run a simple sql statement. Next, we benchmarked our code with EF6 and we saw that the server responded very quickly. As EF6 implements

Check Contraint Bypassing CATCH block in Distributed Transaction

邮差的信 提交于 2019-12-20 07:30:04
问题 I have a MSSSQL stored procedure performing a distributed transaction that looks like this: SET XACT_ABORT ON; SET NOCOUNT ON; BEGIN TRY BEGIN DISTRIBUTED TRANSACTION insert into LNKSRV.INST.dbo.zz (id, val) values (1, 'a'); insert into LNKSRV.INST.dbo.zz (id, val) values (2, 'b'); COMMIT TRANSACTION END TRY BEGIN CATCH if (XACT_STATE() <> 0) BEGIN ROLLBACK TRANSACTION; END print ERROR_MESSAGE(); print ERROR_LINE(); print ERROR_SEVERITY(); END CATCH This works fine. If I add this 3rd insert

If I access UserTransaction does this mean that I use 2 phase commit or XA?

℡╲_俬逩灬. 提交于 2019-12-18 13:47:30
问题 UserTransaction ut=lookup.... ut.beginTransaction(); saveToFooDB(); statelessEjb.transactionSupportedMethod(); //saves something to the Foo DB saveToFooDB(); ut.commit(); If i was doing the above then my understanding is that it is not an XA transaction as it doesn't span across multiple resources (like DB plus JMS). Is my understanding correct? 回答1: Data source can be configured of two kinds: XA : these datasource can participate in distribute transactions Local : also called non-XA, they

Unable to begin a distributed transaction

大城市里の小女人 提交于 2019-12-17 08:16:12
问题 i'm trying to run SQL against a linked server, but i get the errors. BEGIN DISTRIBUTED TRANSACTION SELECT TOP 1 * FROM Sessions OLE DB provider "SQLNCLI" for linked server "ASILIVE" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Line 3 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "ASILIVE" was unable to begin a distributed transaction. There are two errors returned by the provider: Error #1: Number: $80040E14 Source:

Transaction coordinator for wcf distributed transactions

你。 提交于 2019-12-14 02:02:56
问题 I know that Transaction coordinators are used for coordinating transaction between different types of resources such as 1)SQL Server 2)Oracle 3)MSMQ 4)File System etc. and it is their responsibility to keep tracks of transactions and if transaction of any of this resources failed it should rollback transaction of all other resources in WCF. I would like to know a) Which transaction coordinator to choose and why b) Can we choose transaction coordinator by itself or it will be done

XA transaction for two phase commit

陌路散爱 提交于 2019-12-13 04:33:36
问题 hi, If two resources are involved in a transaction then the XA transation setting should be enabled in the weblogic server. Then the xa drivers has to be chosed.Is there a alternative way to have this two resources in a transaction without enabling XA transaction 回答1: Yes, you can use Global Transaction Emulation. WebLogic has two mode: Logging Last Resource - WebLogic creates a table into all your datasources and write transactions data into this table. This is a preference option. From

DTS transaction fails: Can not access a disposed object

谁说胖子不能爱 提交于 2019-12-13 04:28:07
问题 We are running distributed transactions, and on some rare occasions we get the following error: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'SqlDelegatedTransaction'. at System.Data.SqlClient.SqlDelegatedTransaction.Rollback(SinglePhaseEnlistment enlistment) at System.Transactions.TransactionStateDelegatedAborting.EnterState(InternalTransaction tx) at System.Transactions.Transaction.Rollback() at System.Transactions.TransactionScope.InternalDispose() at

Simpleroleprovider causing remote transaction inside transactionscope

时光毁灭记忆、已成空白 提交于 2019-12-13 04:24:15
问题 I am in the process of upgrading asp.net membership to the new simplemembership provider in MVC4. This is an Azure/Sql Azure app which runs fine on localhost but fails when deployed. I have code in a transaction as follows: TransactionOptions toptions = new TransactionOptions(); toptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable; using (TransactionScope trans = new TransactionScope(TransactionScopeOption.Required, toptions)) { try { ... do a bunch of database stuff in a

Can I use JTA over different EARs which are deployed to different servers?

情到浓时终转凉″ 提交于 2019-12-12 18:02:47
问题 I'm looking into JTA as I need distributed transactions (across JPA, JMS and EHCache). I'm trying to understand whether JTA can supply an additional functionality which I'm considering. If I have 3 different servers, each running Glassfish and each server has a different EAR (a different module of mine). Can I have a transaction which will span across different servers and different EARs? Thanks, Ittai 回答1: Can I have a transaction which will span across different servers and different EARs?