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. Combining two data base of the same schema

Combining two data base of the same schema

Scheduled Pinned Locked Moved Database
databasexmlquestion
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.
  • M Offline
    M Offline
    militiaware
    wrote on last edited by
    #1

    i have a data base called DBTest on machine one and contains a table called DTTable1 and i have the same database DBTest on machine Tow. now i filled the data into DTTable1 on machine one from "A" to "K" and i filled the data from "L" to "Z" on machine Two. What i want is to Combine the data from DTTable1 in the Machine One with the DTTable1 on Machine Two. How that can be done?:( Faris Madi Nothing Comes Easy (N.C.E.)

    R 1 Reply Last reply
    0
    • M militiaware

      i have a data base called DBTest on machine one and contains a table called DTTable1 and i have the same database DBTest on machine Tow. now i filled the data into DTTable1 on machine one from "A" to "K" and i filled the data from "L" to "Z" on machine Two. What i want is to Combine the data from DTTable1 in the Machine One with the DTTable1 on Machine Two. How that can be done?:( Faris Madi Nothing Comes Easy (N.C.E.)

      R Offline
      R Offline
      r stropek
      wrote on last edited by
      #2

      Hi! It depends if you want to combine the content within a SQL statement without transferring the data permanently or if you want to create a third table that physically contains the combined data. If you need a query and you do not want to tranfer the data 1. create a linked server from machine one to two (or the other way round; you can do this in SQL Server management studio (2005) or Enterprise Manager (2000) 2. select * from DBTest.dbo.DTTable1 union all two.DBTest.dbo.DTTable1 As an alternative to 1 you can also use OPENQUERY or OPENROWSET (see SQL Server Books Online for details). If you want to move the combined data into a third table use DTS (SQL 2000) or SSIS (SQL 2005). With these tools it is quite easy to move data from one table into another. Hope this helps. Regards, Rainer. Rainer Stropek Visit my blog at http://www.cubido.at/rainers

      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