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. Is SELECT INTO optimal to copy data?

Is SELECT INTO optimal to copy data?

Scheduled Pinned Locked Moved Database
databasecomtoolsquestion
2 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.
  • S Offline
    S Offline
    Salil Khedkar
    wrote on last edited by
    #1

    I am writing a stored proc. Currently doing a "SELECT INTO" to copy data from one table to a new one. But eventually a. I want to do it most optimally as the data is gonna be huge b. Also it should be able to insert data in an existing table. What SQL stmt/function should I use? :doh: Salil Khedkar [^]

    M 1 Reply Last reply
    0
    • S Salil Khedkar

      I am writing a stored proc. Currently doing a "SELECT INTO" to copy data from one table to a new one. But eventually a. I want to do it most optimally as the data is gonna be huge b. Also it should be able to insert data in an existing table. What SQL stmt/function should I use? :doh: Salil Khedkar [^]

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      INSERT INTO [table]
      SELECT [col1], [col2], [col3], ...
      FROM ...

      Stability. What an interesting concept. -- Chris Maunder -- modified at 8:32 Thursday 2nd February, 2006

      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