首页 > 其他 > 详细

跨库事务

时间:2015-04-03 00:12:56      阅读:308      评论:0      收藏:0      [点我收藏+]
Unless MS DTC is currently installed on the computer running the instance of the Database Engine, this example produces an error message. For more information about installing MS DTC, see the Microsoft Distributed Transaction Coordinator documentation.

USE AdventureWorks2012; GO BEGIN DISTRIBUTED TRANSACTION; -- Delete candidate from local instance. DELETE AdventureWorks2012.HumanResources.JobCandidate     WHERE JobCandidateID = 13; -- Delete candidate from remote instance. DELETE RemoteServer.AdventureWorks2012.HumanResources.JobCandidate     WHERE JobCandidateID = 13; COMMIT TRANSACTION; GO

跨库事务

原文:http://www.cnblogs.com/wolf12/p/4388773.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!