Solved

Msg 7391, Level 16, State 1, Line 2

Posted on 2007-04-02
10
2,064 Views
Last Modified: 2013-11-25
Can no longer run a distributed transaction since adding a 2K5 instance to a box that had (and still has) 2K on it.  I now get this error:

Msg 7391, Level 16, State 1, Line 2
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
0
Comment
Question by:carecorejen
  • 4
  • 4
10 Comments
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 18838634
Check your DTC service on the box, make sure it is running since the upgrade
0
 

Author Comment

by:carecorejen
ID: 18838741
It is running and I can run select queries, but the update queries no longer work.  

Note:  the update queries only REFERENCE a table on the linked server.  The effected row is local.  Here is the query:

update ld
set ld.COVERED_SINCE = 1
FROM ES_LOADER_DETAIL LD
            JOIN V_COMPANY C ON C.ID = 71
WHERE LOADER_ID = 6162
            AND EXECUTING = 1
            AND LD.COVERED_SINCE < C.PROGRAM_START_DATE

V_Company is a view on a remote server, but as you can see, I am writing to ES_Loader_Detail, a  local table.  Thanks!
0
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 18838893
Run this from the instance that has teh ES_Loader_Detail table:

begin distributed transaction

What do you get?
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:carecorejen
ID: 18838933
The command(s) completed successfully.
0
 
LVL 21

Expert Comment

by:Kevin3NF
ID: 18838981
try it on the remote box...should have suggested that in the first place...sorry
0
 

Author Comment

by:carecorejen
ID: 18839024
They are one in the same.  Linked server is to itself to simulate the production environment in test.  It always worked (3+ years) until 2K5 was installed, though.  I feel like it's got something to do with surface area configuration interfering with 2K.  The reason I suspect that is that I can no longer open the MMC for component services to modify the DTC settings.
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 18840649
http://support.microsoft.com/kb/873160

CAUSE
This problem occurs for one or more of the following reasons:
•      Microsoft Distributed Transaction Coordinator (MSDTC) is disabled for network transactions.
•      Windows Firewall is enabled on the computer. By default, Windows Firewall blocks the MSDTC program.

Note This problem may occur even when Windows Firewall is turned off.

Read workaround on MS Site.

What you can do is insert the values in the Temp Table and then run your update from Temp Table your error will go away.
Regards,
---Pinal
0
 

Author Comment

by:carecorejen
ID: 18842668
Neither machine is XP.  It is a Win2K server with SQl 2K and SQL2K5 both installed. The linked server is from the SQL2K instance to itself.  Thanks, though.
0
 
LVL 21

Accepted Solution

by:
Kevin3NF earned 125 total points
ID: 18842876
>>The reason I suspect that is that I can no longer open the MMC for component services to modify the DTC settings.<<

I would hit this issue first, as it does seem that the component may have gotten messed up when 2005 was installed
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

809 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