By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,151 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,151 IT Pros & Developers. It's quick & easy.

creating window service to synchronize local database toserver database

P: n/a
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.
Sep 19 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"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.

Sep 19 '08 #2

P: n/a
Normally the issue here is that a service runs in a different security
context (commonly "local service" or "network service") which means
that it won't have the same rights (on the network) that you do. Try
running the service is a dedicated user identity that has access to
the database.

Or tell us more about "not working" - i.e. the exact error message /
behaviour.

Marc
Sep 19 '08 #3

P: n/a
I am facing the same database synchronisation issue.Can u simply guide me through the entire
process you followed to synchronize the local database of the application with the server database.
Need to know the step by step approach you followed.I tried many ways but of no use.Do i have to use windows service.
I am totally new to windows services.Plz look into my issue.
Nov 11 '08 #4

P: n/a
I am facing the same database synchronisation issue.Can u simply guide me through the entire
process you followed to synchronize the local database of the application with the server database.
Need to know the step by step approach you followed.I tried many ways but of no use.Do i have to use windows service.
I am totally new to windows services.Plz look into my issue.
Nov 11 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.