Linked Server Distributed transaction Error

  • Hi,

    I am trying to execute procedure through linked server ,

    but after executing the same it is giving me following error.

    OLE DB provider "SQLNCLI" for linked server "XYZ"

    returned message "No transaction is active.".

    Msg 7391, Level 16, State 2, Line 18

    The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "XYZ" was unable to begin a distributed transaction.

    I have already enabled remote inbound and remote outbound from MS DTC settings in component service.

    For Info. I am using SQL Server 2005 enterprise edition and Windows 2003 enterprise on both the machines.

  • Does your other transaction or SP working fine with same linked server .

  • No it is not.

    I have also tried to execute other sp using same linked server but it is giving me same error.

  • I tried it like

    Inser into #tmp

    Exec linkedserver.db.dbo.mysp

    Then it is giving me error but when I directly run following statement then it gives me output

    linkedserver.db.dbo.mysp

  • What sort of environment is this? Are both computers in the same domain? Do you only have a workgroup?

    Getting MSDTC to work when you don't have the trust from a domain can be very difficult. I have been successful in my workgroup at home, by have the same name for the service accounts for the DTC service with the same password.

    On SQL 2008 there is a server option to turn off promotion to disitributed transaction, but alas it is not available in SQL 2005.

    By the way, this forum is intended for the most recent release of SQL Server, SQL 2014, currently in beta.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • I have one server in domain and another is in workgroup.

    The one which is in Domain on that server i am executing the query and the procedure is on server which is in work group environment.

  • That sounds indeed like a difficult case. I don't know enough about Windows to say whether this can be solved and how. And MSDTC is a Windows component.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • Do you have RPC enabled for that linked server, server options?

  • Thanks for your reply,

    My issue got solved ,I just updated my host file from drives\etc folder,

    I added IP address and host name into the file in both server. :-):-):-)

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply