Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2004

Tip: Looking for answers? Try searching our database.

What's the fastest way to transport a DataSet object?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 06 Oct 2004 00:39 GMT
I'm investigating ways to transfer DataSets to remote machines.  Intuitively
it seems like using TCP/Binary would be faster than HTTP/SOAP, but since
DataSets are XML internally is there a way to gather the data from SQL-Server
and transport it as XML that might be faster than the TCP/Binary route?

Thanks.
J?lio Carvalho - 06 Oct 2004 18:12 GMT
..

I'm investigating ways to transfer DataSets to remote machines.
Intuitively
it seems like using TCP/Binary would be faster than HTTP/SOAP, but since
DataSets are XML internally is there a way to gather the data from
SQL-Server
and transport it as XML that might be faster than the TCP/Binary route?

Thanks.

..

   If I understood well, I believe you wanted to say TCP/Binary = ".Net
Remoting" and HTTP/SOAP = "WebServices".
   .Net Remoting is more faster, you will build applications server and
client, and register a channel TCP/IP to listen port, and all
serializable types can pass through it, including DataSet, DataTable.
   You can also define a default xml structure, so you would send data
as string type using .Net remoting. This way you save space and reduce
traffic, but you may lose important DataSet informations.
   I advise you use .Net Remoting with DataSet.

I hope this help you ...

Valew,

J?lio Carvalho
Programador C# .Net
julio.carvalho@gmail.com
Daniel Carbajal [MVP] - 06 Oct 2004 19:25 GMT
Maybe this is not what you want, but the fastest way to transport data is
not using DataSets, it is using your own classes with Byte arrays....
Regards,
Daniel Carbajal
MVP

> I'm investigating ways to transfer DataSets to remote machines.  Intuitively
> it seems like using TCP/Binary would be faster than HTTP/SOAP, but since
> DataSets are XML internally is there a way to gather the data from SQL-Server
> and transport it as XML that might be faster than the TCP/Binary route?
>
> Thanks.
Mehdi Mirzaie - 07 Oct 2004 11:19 GMT
you can use 2 methods  
 a ) to get meta-data (schema of ur data) - GetXmlSchema of DataSet
 b ) just data - GetXml of DataSet
or other ways like this.
TCP/Binary communication and formating with Window Service Host Process if
great .
If u use XML Entities instead of custom .Net classes , u can use benefits of
a loosly coupled system .but this is a trade-off for performance and
felxibilty .

> Maybe this is not what you want, but the fastest way to transport data is
> not using DataSets, it is using your own classes with Byte arrays....
[quoted text clipped - 10 lines]
> >
> > Thanks.
Saurabh Nandu - 08 Oct 2004 08:07 GMT
Hi,

if you are looking at a direct way to pass data from SQL in XML, then look
at the SQL Xml toolkit from Microsoft for MS SQL 2000.

[ http://www.microsoft.com/sql/techinfo/xml/ ]

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.