views:

145

answers:

2

I have a program I've written in VB.NET 2005, it saves statistics in an xml file. I use this program on multiple computers. I'd like to set up a webserver where I can upload my xml file, or just the data, and add it to the server ignoring duplicate entries already on the server. What do I need for to learn for this? SQL? Any ideas would be appriecated!

+1  A: 

I did something like this a long time ago to send back HFNetChk XML reports from around the world back to a central server.

I set up a service endpoint on the server (webservice, TCP, whatever fits your req's), and had the client app send the finished XML back to the central server when it was done with its processing. The webserver would send back a "data received OK" message to let the client know it could move on, and then the server would go about processing the data, and entering it from the XML into a SQL database.

So, to answer your question, learn how to create a WCF service (aim for webservices for now - ASMX is ok if WCF seems to be too much for now), and learn how to parse the incoming XML and insert it into meaningful SQL tables.

/fark can be useful

Greg Hurlman
A: 

I'll second the recommendation for WCF/asmx services. As for how you store the data it really depends on what you want to do with it, you could leave them as XML or if you want reporting on them, just load them to SQL Server.

Mitchel Sellers