Solved

Linked Server Question

Posted on 2008-06-13
3
157 Views
Last Modified: 2013-11-30
Hi Experts,

My PC is linked to a SQL Server running on Window Server 2003. It is clustered.

When I execute this from my PC:
update [Server1\Instance1].[Database1].[dbo].[Table11] set EmployeeID='123' where EmployeeID='ABC'
everything works fine.

But when I add
begin tran
update [Server1\Instance1].[Database1].[dbo].[Table11] set EmployeeID='123' where EmployeeID='ABC'
commit

I get:
MSDTC on server "Server1\Instance1" is unavailable.

Any advice appreciated.
0
Comment
Question by:sepknow
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 21777440
On the server where the trigger resides, you need to turn the MSDTC service on. You can this by clicking START > SETTINGS > CONTROL PANEL > ADMINISTRATIVE TOOLS > SERVICES. Find the service called 'Distributed Transaction Coordinator' and RIGHT CLICK (on it and select) > Start.

Resources:
http://support.microsoft.com/kb/822473/
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=54705


taken from http://geekswithblogs.net/narent/archive/2006/10/09/93544.aspx
0
 

Author Comment

by:sepknow
ID: 21778318
This service is configure to start automatically but it did not start.
I will try to start it next Monday and response by then. Thanks.
0
 

Author Comment

by:sepknow
ID: 21792207
Hi cs97jjm3,

I accepted your solution because 'Distributed Transaction Coordinator' must start inorder to linked servers to work.
I am going to raise another question because I encounter error (see attached file) when I try to start the service. Not sure if it is related to the cluster service.
Thanks anyway.
MSDTC-Error-Message.png
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now