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. General Programming
  3. C#
  4. Merging DataTable Manualy

Merging DataTable Manualy

Scheduled Pinned Locked Moved C#
databaseperformancehelpcode-review
4 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.
  • I Offline
    I Offline
    indiaone
    wrote on last edited by
    #1

    Hi, I am getting more than one Table from different DataBase and manualy marging into one table. this procedure taking more time.so i need to improve performance. if i use DataTable.Merge method it's merging.it's add new row in same table. can one help me Thanks

    P 1 Reply Last reply
    0
    • I indiaone

      Hi, I am getting more than one Table from different DataBase and manualy marging into one table. this procedure taking more time.so i need to improve performance. if i use DataTable.Merge method it's merging.it's add new row in same table. can one help me Thanks

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      Why are you merging them? What is the eventual goal?

      I 1 Reply Last reply
      0
      • P PIEBALDconsult

        Why are you merging them? What is the eventual goal?

        I Offline
        I Offline
        indiaone
        wrote on last edited by
        #3

        becuase database not on same machine so i can not put join in stored procedure.so what i am doing.get all data from all database and merge then creating dataview on merged data and fillter it. thanks

        P 1 Reply Last reply
        0
        • I indiaone

          becuase database not on same machine so i can not put join in stored procedure.so what i am doing.get all data from all database and merge then creating dataview on merged data and fillter it. thanks

          P Online
          P Online
          PIEBALDconsult
          wrote on last edited by
          #4

          If they are both SQL Server you can link the servers. Otherwise, yeah, you'll need to do it manually. I've never done that, but it sounds like an interesting challenge.

          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