2010-12-05 3 views
3
이 작동

작동하지 않습니다 오류 :삽입 .. 연결된 서버에서 간부는 결과 집합을 반환

OLE DB provider "SQLNCLI10" for linked server "svrA" returned message "No transaction is active.". 
Msg 7391, Level 16, State 2, Line 1 
The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "svrA" was unable to begin a distributed transaction. 
+0

MSDTC (Microsft Distributed Transaction Coordinator) 서비스를 사용하는 sth가 있습니까? 당신은 services.msc에서 시작할 수 있습니다 –

+0

원격 서버 또는 로컬 서버에서이 MSDTC입니까? – sharadov

답변

5

내가 OPENQUERY를 사용하여 대신 EXEC하여 같은 문제를 해결할 수 있었다 :

insert into rowcount_sub (tablename,rowcnt) 
SELECT * FROM OPENQUERY(svrA, 'select ''col'', count(1) from test.dbo.[Table1] with (nolock)') 

누군가 도움이 되길 바랍니다 ...

5

목적에 따라 분산 트랜잭션을 사용하지 않는 경우 주 서버에서 연결된 서버 객체의 고급 특성을 사용하여 분산 트랜잭션의 사용을 중지 할 수 있습니다. 참에서 거짓 고정 내 문제로 "분산 트랜잭션의 추진 활성화"변경

Disable promotion of distributed transaction

0

.

관련 문제