?
Solved

Microsoft SQL Server 2005: BEGIN TRAN - ROLLBACK TRAN and Linked Server Tables

Posted on 2008-11-19
3
Medium Priority
?
963 Views
Last Modified: 2012-05-05
Do SQL Transactions work for the LINKED SERVER tables the same way they work for native  tables?

BEGIN TRAN 
 
DELETE FROMLINKEDSERVER.catalog.dbo.table 
 
ROLLBACKTRAN

Open in new window

0
Comment
Question by:yasuakikudo
  • 2
2 Comments
 
LVL 39

Expert Comment

by:appari
ID: 23001105
you have to use
BEGIN DISTRIBUTED TRANSACTION;
instead of Begin Tran
0
 
LVL 39

Accepted Solution

by:
appari earned 2000 total points
ID: 23001108
for more info on distributed transactions check
http://msdn.microsoft.com/en-us/library/ms188386.aspx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question