Cross database transaction


Author
Message
Chan
Chan
Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I have data in multiple databases. Does SF support transaction for multiple data source? How?



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You can try and setup this up, but I think that you are going to have to use a distributed transaction in order to cross multiple databases under a single transaction.
Chan
Chan
Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)Advanced StrataFrame User (737 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I found that, we can use TransactionScope class to have distributed transaction without using DTC. However, I haven't go thru how to implement this in SF.



Please advice if you have any ideas.



Thank you
ChanKK
ChanKK
StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)StrataFrame User (416 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

I just spent some time to have a look how could I integrate transactionScope to SF. Too bad is that it is not so straight forward for multi-thread environment. As SF uses threading for DataLayer, therefore TransactionScope (which only support single thread) can not be used. Even though DependentTransaction does support multi thread, but it required code change at SF dataLayer.



Hope SF can implement this, or advice how could we accomplish this.



http://www.pluralsight.com/community/blogs/jimjohn/archive/2005/05/01/7923.aspx



Thank you
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search