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. Need to Export Records to Remote Terminal

Need to Export Records to Remote Terminal

Scheduled Pinned Locked Moved C#
questiondatabasetutorial
3 Posts 3 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.
  • L Offline
    L Offline
    Leon van Wyk
    wrote on last edited by
    #1

    I need to Export Fields in a table into another Database Table on a Remote machine, at the moment I Export the records one by one and delete the records as I go along. This is very slow over a 28k connection that I need to use.(3 records per second or so, I am dealing with 1000s of records) I would love to take all the records at once, dump the on the remote machine and then delete the lot! I can make use of a Dataset to get all the records but how do I specify what and how to export this to another connection???:confused: Leon v Wyk

    H L 2 Replies Last reply
    0
    • L Leon van Wyk

      I need to Export Fields in a table into another Database Table on a Remote machine, at the moment I Export the records one by one and delete the records as I go along. This is very slow over a 28k connection that I need to use.(3 records per second or so, I am dealing with 1000s of records) I would love to take all the records at once, dump the on the remote machine and then delete the lot! I can make use of a Dataset to get all the records but how do I specify what and how to export this to another connection???:confused: Leon v Wyk

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Well, a DataSet can be written to an implementation-independent XML file using DataSet.WriteXml(). Since DataSet is also marked with SerializableAttribute and implements ISerializable, you can serialize this normally to a file yourself. It also derives from MarshalByValueComponent, which means that you can use it in remoting as a remote, pass-by-value object. See the documentation for DataSet for what else is available.

      Reminiscent of my younger years...

      10 LOAD "SCISSORS" 20 RUN

      1 Reply Last reply
      0
      • L Leon van Wyk

        I need to Export Fields in a table into another Database Table on a Remote machine, at the moment I Export the records one by one and delete the records as I go along. This is very slow over a 28k connection that I need to use.(3 records per second or so, I am dealing with 1000s of records) I would love to take all the records at once, dump the on the remote machine and then delete the lot! I can make use of a Dataset to get all the records but how do I specify what and how to export this to another connection???:confused: Leon v Wyk

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Doing them in a set wont speed anything up more for you. Best is to perhaps export the table to a temporary access database, zip the file , send it to other side, etc ,etc. Access tends to compress very well. Leon v Wyk wrote: at the moment I Export the records one by one and delete the records as I go along. This is very slow...I am dealing with 1000s of records :laugh: I can picture that :rolleyes: leppie::AllocCPArticle(Generic DFA State Machine for .NET);

        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