Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:36:10+00:00 2026-06-17T10:36:10+00:00

I have this Server/Client app written in C#. There is an SQL Server on

  • 0

I have this Server/Client app written in C#. There is an SQL Server on server side, when client needs a table it sends a request to server application and server application connects to SQL Server and retrieves the table and sends it to client via a NetworkStream.

This is the server side code which sends the DataSet XML Stream

using (var networkStream = new NetworkStream(m_workerSocket[0]))
{
     dataSet.WriteXml(networkStream);
}

And I’m reading this xml file as bytes and convert it to string and convert it to a DataSet again.
This is client side code:

TextReader reader = new StringReader(richTextRxMessage.Text);
DataSet dataSet = new DataSet();
dataSet.ReadXml(reader);
DataTable dtProd = new DataTable();
dataGridView1.DataSource = dataSet.Tables[0];

My question is is this an efficient way to send table between client/server? Would it be a problem with big tables such as 10k entries? What can I do to optimize that?

And there will be a lot of communication between server and client except these tables such as instant messages or different type of files. So how can I handle and classify a lot of data wheter its a file or its a DataSet etc. For example should I put custom string tags (such as <DATASET>, <DOCFILE> etc.) before sending data to identify data type that I’m sending?
Thank you.

PS:I’m using Asynchronous Server and Client to sends and recieve data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:36:11+00:00Added an answer on June 17, 2026 at 10:36 am

    You should use WCF for such tasks.
    You can read about it here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this client/server application, and the client application sometimes completely freezes when i
Hi I have an application that operations like this.. Client <----> Server <----> Monitor
I have this table structure on a SQL Server 2008 R2 database: CREATE TABLE
Is there any ToDo app that have .NET api for server side adding tasks.
I have the following problem: I have a multithreaded server-side application, where every request
I have a web app where the client side stuff is written with coffeescript
I am adapting a little rmi client-server application. I have written several things :
i have data structure i am passing this from server to client using data
I have created my web socket server and client using this simple tutorial here
I have this php code $jsonArray = array(); $sql = SELECT ID,CLIENT FROM PLD_SERVERS;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.