Solved

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

Posted on 2008-10-28
3
200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINQ - C# to VB convertion 12 46
VB.Net How to Exit Sub - Exit Form??? 5 50
Change Format on Data when exporting to Excel 4 23
VB 6 error 5 in windows 10 but not in XP 7 43
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now