Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:13:50+00:00 2026-05-30T15:13:50+00:00

I am in need of writing a process that needs to update 2 identical

  • 0

I am in need of writing a process that needs to update 2 identical tables located in 2 different databases on servers that are geographically separated.

We can’t add one of the servers as a linked server due to some security considerations.

The requirement is also that if either of the process fails, both transactions should be rolled back. It’s all or nothing. After reading the documentation on MSDN regarding TransactionScope it appears as though this class will take care of business for you but there are some fuzzy areas on the documentation that I am hoping someone with experience using this approach can clarify for me:

  1. The documentation says that you can connect to 2 different databases or even a 3rd party RDBMS but it doesn’t specify whether the database servers must be “linked”
  2. Assuming they don’t need to be linked, can you explain, roughly, how does the TransactionScope handles exceptions and manages to roll back when an error occurs?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:13:51+00:00Added an answer on May 30, 2026 at 3:13 pm

    Servers should not be linked. They even can be completely different (we use TransactionScope for distributed transactions between MS SQL and IBM Websphere MQ). Actually it uses MSDTC service that acts as transaction coordinator for two phase commit transactions.

    Though it sounds very powerful and promising, making it work may be tricky. You need to have MSTDC service up and running on all participating servers, its ports should be open in firewall and several security options should be properly configured.

    The following link may be helpful

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a CMS in ASP.NET/C#, and I need to process things like that,
I'm writing a background service that needs to process a series of jobs, stored
As part of the program that I am writing I need it to: Compare
I am a very proficient C# developer, but need to start writing code that
I am the process of writing an update script, which pulls the latest version
I'm trying to support multiple databases for an app that I'm writing. The app
I am writing a multithreaded service that picks up jobs to process that has
I'm writing a script in Perl that needs to run at the same time
I am writing an app that can revert the firmware of a particular device.
I am writing an application in C# that needs to run as a service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.