Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


add windows service to update web server file and sql server database records

Posted on 2007-08-06
Medium Priority
Last Modified: 2010-03-19
I have a web application that that has a datagrid which pulls data from a sql server. The records in the datagrid needs to be archive every night so that the datagrid only shows the most up to date records. The archiving process involves relocating some pdf files in the web server and updating records in the sql server database. I am thinking to use windows service to run this schedule task but I couldn't find any useful article about setting a windows service for an existing web application. I am using vs2003 and sql server 2005. Could anyone help? It will be helpful to give detail explaination. Thank you!
Question by:tds_softwaredev
1 Comment

Accepted Solution

sr22ger earned 1000 total points
ID: 19640526
A windows service running on the web server would be one way of accomplishing this.  I am not too familiar with creating windows services, but this seems like a decent walkthrough.  http://www.devarticles.com/c/a/VB.Net/Creating-A-Windows-Service-in-VB.NET/1/

Another simple way of executing repeated tasks such as your is to use the windows sechduled tasks ability to schedule a simple vb.net app (or any executable file for that matter) to run on the interval you set.

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

581 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