码迷,mamicode.com
首页 > 其他好文 > 详细

跨库事务

时间:2015-04-03 00:14:36      阅读:445      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!