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. write a procedures along with cursors to dump data from one table to another table

write a procedures along with cursors to dump data from one table to another table

Scheduled Pinned Locked Moved Database
5 Posts 5 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.
  • U Offline
    U Offline
    User 11676811
    wrote on last edited by
    #1

    thank you in advance

    CHill60C L S S 4 Replies Last reply
    0
    • U User 11676811

      thank you in advance

      CHill60C Offline
      CHill60C Offline
      CHill60
      wrote on last edited by
      #2

      What is your question? Where is your code? There are not enough details here.

      1 Reply Last reply
      0
      • U User 11676811

        thank you in advance

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        That is not a question, it is an assignment; one that is lacking enough data to complete it. If you need to dump data from table1 into table2, I'd recommend a single "select" statement. No need for cursors there. If you are wondering how to build a cursor, I'd recommend the examples on MSDN. You're welcome.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        1 Reply Last reply
        0
        • U User 11676811

          thank you in advance

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

          TSQL - Cursor[^] TSQL - Select statement[^] TSQL - Insert[^] This is some links to the msdn documentation on various method that you will need to employ to complete your task as you have stated. BUT as others have stated I would also look into the SELECT INTO commands TSQL - Select Into[^] if you need more help after this please post your sql statements that you have you and describe the problem that you are facing. Sadly no one will be willing to just hand you the code without any effort.

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

          1 Reply Last reply
          0
          • U User 11676811

            thank you in advance

            S Offline
            S Offline
            Sascha Lefevre
            wrote on last edited by
            #5

            Your request is rude. Consider yourself lucky you got some pointers.

            If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

            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