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 3452328
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:14:39+00:00 2026-05-18T09:14:39+00:00

We have a system that uses SQL Server 2008 in tandem with MongoDB, using

  • 0

We have a system that uses SQL Server 2008 in tandem with MongoDB, using the latter for a lot of ad-hoc reporting features. They don’t intersect much, but there are one or two places where they do actually need to work together.

I was always slightly concerned about the transactional implications but figured it was not really a big problem if the application did the Mongo work first, and it technically isn’t that big of a problem if a transaction fails in the middle once in a while. But a recent bug came up that was causing them to consistently fail, and although I’ve fixed the bug that caused it, it made me realize just how much of a nuisance it is that I can’t just throw a distributed transaction over the whole unit of work.

Given one database that supports distributed transactions (SQL Server 2008) and another that doesn’t really support any ACID semantics (MongoDB), is there some way I can structure the application code so that a unit of work (“transaction”) either succeeds or gets rolled back in both databases?

Obviously I would have to use some extra columns/keys to track the status of the transaction – but what, and in what context?

  • 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-18T09:14:39+00:00Added an answer on May 18, 2026 at 9:14 am

    What are your consistency requirements? Is it ok if ad-hoc reporting on the Mongo is not always entirely up-to-date?

    If no, then I think you’re in for a hard time.

    If yes, then I think I’d go for some transactional MSMQ along with the SQL Server, and then set up one (or more) services to update the Mongo by processing messages from the queue.

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

Sidebar

Related Questions

So, I have an app that uses a SQL Server express db. I have
Question: I have written a console program that uses the SQL server 2005 web
We have a production system that uses a lot of Serialization. What be basically
I have a system that uses a meta refresh to a logout page, which
I have an old system that uses XML for it's data storage. I'm going
I have a WCF service that uses a System.ServiceModel.Syndication.SyndicationFeed to create an RSS feed.
I have a small command line program that uses the Team System API. When
I have a reporting module in an ASP.NET webforms app (C#) that uses dynamic
I'm developing a Windows Forms application using Visual Studio 2008 C# that uses an
We have a system that is migrating from an older VARCHAR using LIKE setup

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.