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. Returning datatable/dataset by from server in a Multithread Client server socket programming

Returning datatable/dataset by from server in a Multithread Client server socket programming

Scheduled Pinned Locked Moved C#
databasequestionsysadmin
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.
  • A Offline
    A Offline
    AhmedMasum
    wrote on last edited by
    #1

    How can I do the following number 4 and 5 task using client server socket programming? 1. Client send a query as regular text to the server. [I can do this] 2. Server get the SQL from the client. [I can do this] 3. Server execute the query(Select statement). [I can do this] 4. Server return the query result as datatable or dataset to the client [How can I do this] 5. Client get the datatable or dataset and display to the client side.[How can I do this]

    L 1 Reply Last reply
    0
    • A AhmedMasum

      How can I do the following number 4 and 5 task using client server socket programming? 1. Client send a query as regular text to the server. [I can do this] 2. Server get the SQL from the client. [I can do this] 3. Server execute the query(Select statement). [I can do this] 4. Server return the query result as datatable or dataset to the client [How can I do this] 5. Client get the datatable or dataset and display to the client side.[How can I do this]

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      1. Don't write everything in bold. It's a plain message, so it's wise to use plain text.

      dokhinahaoa wrote:

      Server return the query result as datatable or dataset to the client

      Serialize it into XML, that should do the trick.

      dokhinahaoa wrote:

      Client get the datatable or dataset and display to the client side.

      Deserialize your dataset :)

      I are Troll :)

      A 1 Reply Last reply
      0
      • L Lost User

        1. Don't write everything in bold. It's a plain message, so it's wise to use plain text.

        dokhinahaoa wrote:

        Server return the query result as datatable or dataset to the client

        Serialize it into XML, that should do the trick.

        dokhinahaoa wrote:

        Client get the datatable or dataset and display to the client side.

        Deserialize your dataset :)

        I are Troll :)

        A Offline
        A Offline
        AhmedMasum
        wrote on last edited by
        #3

        Sorry !!! Can I have sample code for that??

        L 1 Reply Last reply
        0
        • A AhmedMasum

          Sorry !!! Can I have sample code for that??

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          dokhinahaoa wrote:

          Can I have sample code for that??

          You'd best start here[^], samples can be obtained here[^]. Basically, you transform an object into XML (or binary), send it, and rebuild the class on the receiving end. Something like this;

          "Class X -> becomes XML -> gets send -> gets received -> receiver makes class from XML"

          Enjoy :)

          I are Troll :)

          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