Solved

Need to write entries to database/xml file on remote web server from vb.net app

Posted on 2008-10-28
3
215 Views
Last Modified: 2013-12-25
I'm working on an auto-updating application which we're going to deploy to about 150 remote field laptops. I'm hung up trying to find the best way to track user stats for each laptop after they have updated. So far my app grabs the laptop name, user name and a few other variables from the laptop after updating, but I want to then write this information back to a database or log file on my web server. I'm looking for the simplest way to implement this be it writing to an xml file on my server or even writing to a log file I can parse later.  I'll be using ClickOnce for the automatic updates and this code will be triggered by that event. Any ideas or examples of what others have been doing?
0
Comment
Question by:CalgOGP
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 500 total points
ID: 22830558
Well... If you write to an XML or simple text file, then you could have a webservice on your website that the application consumes to send the XML file.  The service could then react to that in whatever way you like.

If  you want to put it in a database...if it is SQL server, you can contact SQL Server via TCP/IP address if you have the username/password and access to the table and TCP/IP is turned on for that server.  This is true of other db servers also.

You can do it anyway  you choose.  The database option seems simpler, if you can afford to pay the host providers db fee for it.  Of course the webservice wouldn't be that hard either.
0
 

Author Comment

by:CalgOGP
ID: 22832174
Since I already have a mySQL server included with my hosting package I think that's my easiest way to go about this. Thanks for you help.
0
 
LVL 25

Expert Comment

by:SStory
ID: 22834083
I think you are correct.  As long as you have access to it.  You could have a webservice that gets the data and then makes the db entry in MySQL.  There are, as they say here, "many ways to skin a cat..." (sorry to all of you cat lovers...it's just an expression)
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question