configure MSDTC for sql always cluster

zhiqing zhou 76 Reputation points
2022-03-15T20:05:21.833+00:00

from the pop up related question, it says MSDTC is not support with Alwayson, but dated 2013, so not accurate. Based on MS article, yes supported. https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-availability-group-for-distributed-transactions?view=sql-server-ver15
My question is do you configure DTC on each node or do you create a role in failover cluster like below for MSDTC?
Backed years ago, I configured both node and cluster (shared storage) MSDTC role for my SQL clusters, not really sure if we did need both.

Question2: does alter availability group DTC support causing AG availability interruption (like failover or downtime, sql 2016 sp2 cu15 on window 2019, article didn't say it?
ALTER AVAILABILITY GROUP MyaAG
SET (
DTC_SUPPORT = PER_DB
);
183376-image.png

Developer technologies Transact-SQL
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Seeya Xi-MSFT 16,586 Reputation points
    2022-03-16T06:04:17.807+00:00

    Hi @zhiqing zhou ,

    Welcome to Microsoft Q&A!

    My question is do you configure DTC on each node or do you create a role in failover cluster like below for MSDTC?

    Please refer to this:
    https://www.sqlshack.com/explore-cross-database-msdtc-for-distributed-transactions-in-sql-server-always-on-availability-groups/
    The link contains some pictures could give you some ideas. Moreover, there are other related content at the end of the article which you can have a look. Sometimes, they can have a better explanation about the official document.

    Question2: does alter availability group DTC support causing AG availability interruption (like failover or downtime, sql 2016 sp2 cu15 on window 2019, article didn't say it?

    No. I did a test in my environment. I executed this statement, but it did not cause AG availability interruption

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.