search

Home  >  Q&A  >  body text

java - The operation cannot be performed because the OLE DB provider "SQLNCLI" for linked server "***" cannot start a distributed transaction. Solution?

Users put forward requirements for our project to process the data of their original projects at the same time. The databases of the new project and the original project are both sqlserver2005, which are on different servers. The test environment sqlserver2005 is linked to the server sqlserver2012. I planned to establish a linked server on the new project database to operate the database on the old server. However, during the actual operation of the project, I found that an error occurred when using SQL statements from the project to operate the old database through the linked server. I verified that the SQL statements were executed in the new database. any problem. Baidu tried many methods to start the MSDTC service, turn off the firewall, add set xact_abort ON, set it through management tools, directly use JDBC to access the database, etc., but none of them solved the problem.
Error message:

迷茫迷茫2744 days ago740

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-17 10:09:11

    Have you compared the similarities and differences of the Service Pack and all KB of the two servers?

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-17 10:09:11

    Currently we have found a compromise, adding a public method to use JDBC to operate the database on the old server, but it is not convenient to maintain. I hope someone can give the correct solution.

    reply
    0
  • Cancelreply