SQL SERVER Msg 7391解決方法
Msg 7391, Level 16, State 2, Procedure GetTaskList_sp, Line 53
The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "TeamplateDB_LINK" was unable to begin a distributed transaction.
解決過程:
1、首先想到檢視本地配置,
exec sp_configure 'show advanced options',1
go
RECONFIGURE with override
go
開啟高階選項,將如下配置設定為1。
'remote access', 'remote admin connections', 'remote proc trans'。
錯誤仍然出現。
1、 按照網上的幫助,檢查Appalication Server中DTC元件是否已安裝。
開啟Control Panel--àAdd/Remove Programs--àAdd/Remove Windows Componats --àApplication Server,選擇Details..然後檢視Enable Network DTC Access和Enable Network COM+ Access是否已勾選,但這兩項都已安裝。
2、 檢查Distributed Transaction Coordinator服務是否已啟動;
3、 MSDTC設定是否正確:
在run中執行:dcomcnfg
在Component Services對話方塊中展開Console root--àComponent Services--àComputers--àMy Computer,右擊My Computer選擇Properties.
在Detfaulter Properties 選項卡中,選取”Enable Distributed COM on the computer”,可以選取”Defaulter Authentication Level:”為connect,而”Defualt Impersonation Level:”為Identify.
在 MSDTC 選項卡中,press "Security Configuration..." button and then select what you need.
確保選中了下列選項:
Network DTC Access
Allow Remote Clinets 和 Allow Remote Admnistration
Allow Inbound 和 Allow OutBound
Enable Transaction Internet Protocal(TIP)Transactions
Enable XA Transactions
而DTC Logon Account一定要設定為”NT Authority\NetworkService”
選擇”No Authentication Required”
7.檢查兩臺伺服器但都在同一域中,網上有提到是否為可信任的連線,經測試,nbtstat –a IP 無法獲得對方伺服器的計算機名,相信與這個有關,所以在Hosts做一個映像:c:\windows\system32\drives\etc\hosts.
曾經一次出現之類問題時完成第7步就OK了!
8. 有一次出現7391錯誤時經過上述檢查,仍然有錯誤,做如下命令即成功了!
EXEC sp_addserver '遠端伺服器名'
exec sp_setnetname '遠端伺服器名','網路伺服器名'
(sys.servers 中的網路名稱設定為用於遠端 SQL Server 2005 例項的實際網路計算機名,該過程可用於啟用對計算機)的遠端儲存過程呼叫執行)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9932141/viewspace-608037/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SQL Server 匯出Excel有換行的解決方法SQLServerExcel
- SQL Server 解決不區分中英文大小寫方法SQLServer
- 解決無法連線SQL Server資料庫的方法BWSQLServer資料庫
- SQL Server2012 安裝方法詳解SQLServer
- SQL Server查詢慢的解決方案SQLServer
- SQL Server伺服器CPU爆高解決SQLServer伺服器
- SAP CRM中介軟體錯誤IB_CRM_UPLOAD_MSG的解決方法
- Host 'xxx' is not allowed to connect to this MySQL server 解決方法MySqlServer
- 兩款工具解決SQL Server遷移問題DJSQLServer
- sql server資料庫附加錯誤的解決過程SQLServer資料庫
- SQL Server 資料庫無法重新命名的解決SQLServer資料庫
- SQL Server CPU 利用率毛刺的分析定位與解決SQLServer
- SQL Server各種日期計算方法SQLServer
- 圖解Eclipse中找不到Server選項的解決方法圖解EclipseServer
- 成功解決PyCharm 彈出 Server‘s certificate is not trusted 的簡單解決方法PyCharmServerRust
- SQL Server:觸發器詳解SQLServer觸發器
- SQL Server常見問題介紹及快速解決建議SQLServer
- 連線sql server時,不能使用127.0.0.1的解決辦法SQLServer127.0.0.1
- java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized...報錯解決JavaSQLExceptionServerZed
- SQL Server2008程式堵塞處理方法SQLServer
- SQL Server 語句日期格式查詢方法SQLServer
- SQL Server映象自動生成指令碼方法SQLServer指令碼
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- SQL SERVER 資料庫被標記為“可疑”的解決辦法SQLServer資料庫
- sql serverSQLServer
- SQL隱碼攻擊問題以及解決方法SQL
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- SQL Server中常見負載均衡方法(下)VQSQLServer負載
- SQL Server中常見負載均衡方法(上)LNSQLServer負載
- sql server資料庫連線失敗/無法附加解決過程SQLServer資料庫
- SQL Server 2016升級遷移過程中效能問題解決案例SQLServer
- 【能力提升】SQL Server常見問題介紹及快速解決建議SQLServer
- SQL Server與伺服器連線時出錯的解決方案SQSQLServer伺服器
- Moebius for SQL ServerSQLServer
- sql server 使用SQLServer
- SQL Server教程SQLServer
- adb server version (31) doesn’t match this client (36); killing… 的解決方法Serverclient
- 解決MySql報錯:1130 - Host ‘xxx‘ is not allowed to connect to this MySQL server的方法MySqlServer