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. Without rollback

Without rollback

Scheduled Pinned Locked Moved Database
database
6 Posts 4 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.
  • R Offline
    R Offline
    Rock Star
    wrote on last edited by
    #1

    Hi, I just wanted to know that is it possible to retrieve data without rollback or declaring any transaction point in sql 2005.

    Rock Star

    H 1 Reply Last reply
    0
    • R Rock Star

      Hi, I just wanted to know that is it possible to retrieve data without rollback or declaring any transaction point in sql 2005.

      Rock Star

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Yes.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      R 1 Reply Last reply
      0
      • H Henry Minute

        Yes.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        R Offline
        R Offline
        Rock Star
        wrote on last edited by
        #3

        So how can I solve this issue. It will be great if you can guide me for it. Thank you!

        Rock Star

        D 1 Reply Last reply
        0
        • R Rock Star

          So how can I solve this issue. It will be great if you can guide me for it. Thank you!

          Rock Star

          D Offline
          D Offline
          David Mujica
          wrote on last edited by
          #4

          The answer is to not declare any transaction, just do the select. For example: select ID,FullName from Customer This will retrieve the data and not create any implicit or explicit transactions. No need to commit or rollback anything.

          R 1 Reply Last reply
          0
          • D David Mujica

            The answer is to not declare any transaction, just do the select. For example: select ID,FullName from Customer This will retrieve the data and not create any implicit or explicit transactions. No need to commit or rollback anything.

            R Offline
            R Offline
            Rock Star
            wrote on last edited by
            #5

            Thanx for reply My question here is that consider I excuted an update query on a table without defining any transaction point, but now I want to roll back this update query so I can recover my data. How can I do this? Thank u!

            Rock Star

            M 1 Reply Last reply
            0
            • R Rock Star

              Thanx for reply My question here is that consider I excuted an update query on a table without defining any transaction point, but now I want to roll back this update query so I can recover my data. How can I do this? Thank u!

              Rock Star

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              You need to do some work on your question construction b/c thats not what anyone would have though the OP was about. If you are talking about recovering from an error in the statement then a transaction is required, if there was not transaction you are gone. If you want to recover from an incorrect update you may be able to restore the database from a backup or possibly by working the transaction logs. Restore the DB to another SQL instance and compare the data.

              Never underestimate the power of human stupidity RAH

              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