Wednesday, April 17, 2013

Windows Services for constant Database Updates

Research on Windows Services.
What is a Windows Service: http://msdn.microsoft.com/en-us/library/d56de412(v=vs.80).aspx

Create a service using: http://msdn.microsoft.com/en-us/library/zt39148a.aspx

The installer service file properties will define the name and description of the service. Whatever you put in here as the name will appear in Windows Services.

Command line arguments to get everything running:

******
How to install this service
******
installutil.exe xyz.exe

******
How to uninstall this service
******
installutil.exe /u xyz.exe

******
How to Start the Service
******
net start "xyz"

******
How to Stop the Service
******
net stop "xyz"

******
To verify service is running
******
1. Go to Command line: cmd.exe
2. Type in: services.msc
3. Look for "xyz"

******
How to see what's happened with the service
******
1. Go to Event Viewer and view messages: eventvwr
2. Windows Logs | System


No comments: