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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:30:49+00:00 2026-05-23T20:30:49+00:00

I am using an MSMQ endpoint. I have set the following attributes on my

  • 0

I am using an MSMQ endpoint.
I have set the following attributes on my service.

[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
public void MyMethod(MyParam param) { ... }

On the interface I have

[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, ReleaseServiceInstanceOnTransactionComplete = true)]

I have a method that makes an update to a sql server database and MSDTC is always used and the transaction is promoted.

How do I suppress this. How do I make a connection to sql server that is in a completely SEPARATE transaction to the MSMQ transaction. I want a sql transaction only, not a DTC transaction. Is there any way to ensure that the sql transaction is not included in the scope of the MSMQ transaction.

I am hoping I can do this without removing transactioning completely on MSMQ which is what I am considering.

Regards

Craig

  • 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-23T20:30:50+00:00Added an answer on May 23, 2026 at 8:30 pm

    You are complaining about core meaning of transactional MSMQ. Transactional MSMQ uses transactional reading and writing to the queue. So your message is read in the transaction and if its reading / processing fails reading is rolled back and message is not deleted from the queue. By marking your operation with TransactionScopeRequired you are telling WCF that your operation is part of message’s transactional processing. If your database operation fails it will fail MSMQ reading as well and your message is not lost. If you open database connection in your operation transaction will be promoted to DTC because you have two transactional resources in single transaction.

    So if you don’t want this mechanism don’t use transactional queue but think about it carefully. The reason for turning off transactional queue should be that you don’t need it not that you don’t want distributed transactions.

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

Sidebar

Related Questions

I have a WCF Service Using MSMQ hosted on IIS. I want to create
I have been doing some research for using MSMQ. Following 2 gave me fundamental
Can someone tell me whether MSMQ (using transactions) supports competing consumers? Basically, I have
I am using a WCF service to pick up messages off of MSMQ. I
How to a subscribe to a queue in msmq using c#. Assuming i have
I've a question about WCF. I created a WCF service with a MSMQ endpoint.
I have a BizTalk 2006 app which has a sendport using MSMQ. I have
I have a system that sends a object to another service via WCF using
I'm very new to MSMQ. We have a critical system using MSMQ and it
I have program which reads MSMQ using GetAllMessages but it does not remove messages

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.