Solved

Msg 7391, Level 16, State 1, Line 2

Posted on 2007-04-02
10
2,060 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql 2014,  lock limit 5 32
Query Syntax 17 35
SQL Syntax: How to force case sensitive query? 2 29
Alternative of IN Clause in SQL Server 3 21
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

773 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