"sujatha k" wrote in message news:20*****************@evernet.co.in...
>I want to create one window service to synchronice my local database with
server database.i've done the synchronization process in .net application
it is working fine. i copied tat code and put it in windows service
OnStart() method. but it is not working. i'm very new to window services.
please help me out in this.
The OnStart method needs to finish quickly, otherwise it will give a timeout
error when starting the service.
If your service is intended to synchronice the databases periodically, you
will want to use OnStart method to start a Timer, and exit. The Timer event
will then perform the synchronization with the periodicity that you need.