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

We have an application that uses SQL Server 2008 R2 Express with Advanced Services.
We have a system that uses a SQL server 2005 database with a number
I have a website that uses asp.net 3.5 and Sql server 2008 as backend
I have a standard php app that uses SQL Server as the back-end database.
I have an ASP.Net MVC application that uses SQL Server 2005 via NHibernate. I
Question: I have written a console program that uses the SQL server 2005 web
The Scenario I have written a Silverlight 3 Application that uses an SQL Server
I've got an MVC web application that uses SQL Server 2008 as a back
I'm using SQL Server 2008. I have a table with over 3 million records,
I have Windows 2008 Server 64 bits, Sql Server Reporting Services 2008 R2. I

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.