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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. SQL Transaction Exception

SQL Transaction Exception

Scheduled Pinned Locked Moved C#
helpdatabasetutorialquestionannouncement
6 Posts 6 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.
  • Z Offline
    Z Offline
    Zeyad Jalil
    wrote on last edited by
    #1

    Hi, When I update a table using sql transaction i got the following error: "This SqlTransaction has completed, it is no longer usable". Please help me to know what is the reason and how to solve this issue.

    S Kornfeld Eliyahu PeterK D 3 Replies Last reply
    0
    • Z Zeyad Jalil

      Hi, When I update a table using sql transaction i got the following error: "This SqlTransaction has completed, it is no longer usable". Please help me to know what is the reason and how to solve this issue.

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      You need to show the code that this is happening on. I would guess you are trying to do additional work on the database after you have committed the transaction.

      Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

      B 1 Reply Last reply
      0
      • Z Zeyad Jalil

        Hi, When I update a table using sql transaction i got the following error: "This SqlTransaction has completed, it is no longer usable". Please help me to know what is the reason and how to solve this issue.

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #3

        Look for SqlTransaction.Commit, you will find probably more than one and while debugging you will hit more than one... However for more detailed answer you must show your code to us...

        I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        1 Reply Last reply
        0
        • S Simon_Whale

          You need to show the code that this is happening on. I would guess you are trying to do additional work on the database after you have committed the transaction.

          Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

          B Offline
          B Offline
          BHARAT703
          wrote on last edited by
          #4

          My Friend, no. of animals or sea food used by non-vegetarians are in terms of billions/day... Just tell me, those animals are not innocent?

          D 1 Reply Last reply
          0
          • B BHARAT703

            My Friend, no. of animals or sea food used by non-vegetarians are in terms of billions/day... Just tell me, those animals are not innocent?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Uhhhh...yeah. Whatever you're smoking for recreational purposes, STOP.

            A guide to posting questions on CodeProject

            Click this: Asking questions is a skill. Seriously, do it.
            Dave Kreskowiak

            1 Reply Last reply
            0
            • Z Zeyad Jalil

              Hi, When I update a table using sql transaction i got the following error: "This SqlTransaction has completed, it is no longer usable". Please help me to know what is the reason and how to solve this issue.

              D Offline
              D Offline
              Dilan Shaminda
              wrote on last edited by
              #6

              check this answer here. It might help you :) http://stackoverflow.com/questions/6358806/this-sqltransaction-has-completed-it-is-no-longer-usable-configuration-er[^] This article is also explaining the same problem Zombie check on Transaction - Error : This SqlTransaction has completed; it is no longer usable.

              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