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. copy a column from one table to another [modified]

copy a column from one table to another [modified]

Scheduled Pinned Locked Moved Database
xmlquestiondatabasevisual-studio
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.
  • R Offline
    R Offline
    rzvme
    wrote on last edited by
    #1

    How can i copy a column from one table to another (data and schema) at runtime in vs 2005? the data and schema are read from xml files -- modified at 8:44 Sunday 14th January, 2007

    rzvme

    E 1 Reply Last reply
    0
    • R rzvme

      How can i copy a column from one table to another (data and schema) at runtime in vs 2005? the data and schema are read from xml files -- modified at 8:44 Sunday 14th January, 2007

      rzvme

      E Offline
      E Offline
      Elina Blank
      wrote on last edited by
      #2

      Write an sp, that will do that and call it from your code. The sp (for SQL server) will look something like this: INSERT INTO [InsertDB].[dbo].[InsertTable] ( [ColumnName1],[ColumnName2] ) SELECT [ColumnName1],[ColumnName2] FROM [SourceDB].[dbo].[SourceTable]

      Sincerely, Elina Life is great!!! Enjoy every moment of it! :-O

      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