moving a dataset over tcp/ip

  • Thread starter Thread starter Lennie
  • Start date Start date
L

Lennie

Hello..





I have a application that is using a DataSet to store information in.

And I want to move all the information in the DataSet to another datset on
another computer over tcp/ip.

Can I do that ?

And how do I do that?

I am using C#



// Lennie

Phonera IT-dep
 
Hi Lennie,

One way is to use XML Serialization. Convert the Dataset
into an XML file (format can be either ascii or binary),
transfer it and then recreate the Dataset at the receiving
end from this file.

HTH.

Kaustav Neogy.
 
I would recommend serializing the dataset to xml using DataSet.WriteXML and
then pass the stream over. On the other side, you can deserialize it and
you'll have your dataset.

You may also want to create a webservice that either app can pull and write
to....they can return datasets and might be just what you need.

HTH,

Bill
 
In addition to Kaustav and William:
DataSet will be always serialized to xml.
It does not support binary serialization (though it does but it is still
serialized to xml).
So - beware of the siiiizee.
 
Hello..

Yes. thats is what i want..
do you have some more information about writing the webservice and the code
in the application that is talking to the webservice.
i am new at c# and dot.net application.

// Lennie
 
Back
Top