Distributed database transaction vs cross database transaction

不羁岁月 提交于 2019-12-01 01:51:51

问题


What's the different between Distributed database transaction and cross database transaction in SQL Server.

I know that Distribute database transaction is a transaction between multiple database and can use by following query :

BEGIN DISTRIBUTED TRANSACTION
...
COMMIT TRANSACTION

回答1:


A Cross database transaction occurs between 2 or more databases on the same server. It does not require the involvement of a DTC (Distributed Transaction Coordinator)

A Distributed database transaction occurs between 2 or more databases hosted on multiple servers. DTC (Distributed Transaction Coordinator) services are required on each participating server.



来源:https://stackoverflow.com/questions/23976740/distributed-database-transaction-vs-cross-database-transaction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!