Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem with distributed transaction

Problem with distributed transaction

Scheduled Pinned Locked Moved Database
helpdatabasesql-servercomsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MasudM
    wrote on last edited by
    #1

    Hi all, I got a problem with running distributed transactions between two servers that is connected via VPN connection (using RRAS). after the VPN connection is connected I can connect to the remote server with Microsoft SQL server management Studio and I can run query againts server. The problem occures when one of my store procedures start a distributed transaction and wants to insert at the remote server. (with just one insert command I can insert rows in the remote server but I can not wrap in a transaction) I got this error : "OLE DB provider "SQLNCLI" for linked server "172.26.0.11\CENTER" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Procedure p_InsertPointOnline, Line 54 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "172.26.0.11\CENTER" was unable to begin a distributed transaction." I tried the following things : 1. turn off firewall in both sides. 2. Checking MS DTC security to allow outbound an inbound transactions on both sides 3. SET XACT_ABORT ON 4. SET REMOTE_PROC_TRANSACTIONS ON the strange thing is when I switched the firewall off and reconnect the VPN I got some transactions through. But the day after that the system did not work, after a lot of time I again turn the firewall back on with some added port as exceptions. Again it works until I disconnect the VPN and reconnect. I again turn the firewall off and reconnect the VPN it works again, you see the loooop :((!!! if any one could help me with this issue I would be gratefull. Hope you never stuck in such situations.

    P 1 Reply Last reply
    0
    • M MasudM

      Hi all, I got a problem with running distributed transactions between two servers that is connected via VPN connection (using RRAS). after the VPN connection is connected I can connect to the remote server with Microsoft SQL server management Studio and I can run query againts server. The problem occures when one of my store procedures start a distributed transaction and wants to insert at the remote server. (with just one insert command I can insert rows in the remote server but I can not wrap in a transaction) I got this error : "OLE DB provider "SQLNCLI" for linked server "172.26.0.11\CENTER" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Procedure p_InsertPointOnline, Line 54 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "172.26.0.11\CENTER" was unable to begin a distributed transaction." I tried the following things : 1. turn off firewall in both sides. 2. Checking MS DTC security to allow outbound an inbound transactions on both sides 3. SET XACT_ABORT ON 4. SET REMOTE_PROC_TRANSACTIONS ON the strange thing is when I switched the firewall off and reconnect the VPN I got some transactions through. But the day after that the system did not work, after a lot of time I again turn the firewall back on with some added port as exceptions. Again it works until I disconnect the VPN and reconnect. I again turn the firewall off and reconnect the VPN it works again, you see the loooop :((!!! if any one could help me with this issue I would be gratefull. Hope you never stuck in such situations.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Check which ports your firewall are blocking.

      Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

      M 1 Reply Last reply
      0
      • P Pete OHanlon

        Check which ports your firewall are blocking.

        Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

        M Offline
        M Offline
        MasudM
        wrote on last edited by
        #3

        The firewall on both sides are off. I discovered the reason but the do not know what to do exactly. The thing is that the remote server which is VPN server can not use netbios to reply to local server it can not resolve the Computer name. after the connection is made it is for about two seconds can reslove the name but after that it stop. I you know beside firewall what can cause such problem do not hesitate to tell me. Extra information : the remote server is win2003 local server is Winxp Pro both have sql 2005 standard edition No firewall software is installed and windows firewall is off. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups