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. retrive deleted column

retrive deleted column

Scheduled Pinned Locked Moved Database
question
9 Posts 8 Posters 1 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
    moein serpico
    wrote on last edited by
    #1

    hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

    D S M C Q 5 Replies Last reply
    0
    • M moein serpico

      hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      Ctrl Z ? How's the new job?

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

      S 1 Reply Last reply
      0
      • M moein serpico

        hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

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

        if it had data in it then restore from backup.

        As barmey as a sack of badgers

        1 Reply Last reply
        0
        • M moein serpico

          hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

          M Offline
          M Offline
          MidwestLimey
          wrote on last edited by
          #4

          You can't per se, the data is gone. However as Simon said you can restore from the last backup. S??? happens, that's what backups are for. If this is a production DB on the otherhand, s??? should rarely happen to them, which means an awfull lot of arselicking would be required. If there are no backups, divert blame to the DBA as s??? happens and that's what backups should be for. If you are the DBA, and no backups have been performed, and this was the dev environment, copy the production environment to dev. If you are the DBA, and no backups have been performed, and this was the production environment find the nearest exit and polish your resume. Good luck!

          062142174041062102

          1 Reply Last reply
          0
          • D Dalek Dave

            Ctrl Z ? How's the new job?

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

            S Offline
            S Offline
            SimulationofSai
            wrote on last edited by
            #5

            If you do not know how to help, shut up. And provided you can read and comprehend "Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid."

            SG Aham Brahmasmi!

            P D 2 Replies Last reply
            0
            • S SimulationofSai

              If you do not know how to help, shut up. And provided you can read and comprehend "Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid."

              SG Aham Brahmasmi!

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              SimulationofSai wrote:

              "Insults, slap-downs and sarcasm aren't welcome.

              Yes they are... as long as they're directed at someone else.

              1 Reply Last reply
              0
              • S SimulationofSai

                If you do not know how to help, shut up. And provided you can read and comprehend "Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid."

                SG Aham Brahmasmi!

                D Offline
                D Offline
                Dalek Dave
                wrote on last edited by
                #7

                You need to develop a sense of humour and read earlier threads, ass hat.

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

                1 Reply Last reply
                0
                • M moein serpico

                  hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

                  C Offline
                  C Offline
                  Corporal Agarn
                  wrote on last edited by
                  #8

                  Sorry I did not see this sooner, so this is too late. Depending on your disaster recovery model you could do a point in time restore from your backup. This would mean you need full recovery mode, and using the transaction logs.

                  1 Reply Last reply
                  0
                  • M moein serpico

                    hi guys i delete a column in a table UNWITTING how can i restore my mistake and retrieved my deleted column

                    Q Offline
                    Q Offline
                    Qulan
                    wrote on last edited by
                    #9

                    If this is production AND you have a backup, you may not want to restore over the top of a production database. you can instead restore to a new database, then add the column allowing nulls, use an update query to put the data back leaving anything in the other columns unchanged. depends on the nature of your data and environment.

                    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