Solved

Msg 7391, Level 16, State 1, Line 2

Posted on 2007-04-02
10
2,046 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
 

Author Comment

by:carecorejen
ID: 18838933
The command(s) completed successfully.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dynamics crm 2011 8 46
Data center mess 4 49
SQL Inner Join Vs SubQueries 9 26
Best RAID for a BDD Oracle 4 27
Creating and Managing Databases with phpMyAdmin in cPanel.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to shrink a transaction log file down to a reasonable size.

746 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

9 Experts available now in Live!

Get 1:1 Help Now