.net - Is a Windows Service application the right approach -


I currently have a windows app that is automatic and runs daily. The purpose of downloading a dataset is to use a dataset to insert into the SQL 2005 database.

Is there a window service application suitable in this situation, will it be more flexible, and it will perform better

You can of course get it as a service, but I do not think you benefit from any one since the service is always running, so generally those applications are used It is done, which have to be run, because they will be continuously demanding a condition. Are Nc (the waiting remoting would, to check every minute for information in databases, etc.).

Since you go once a day, so if you change it then you will not have any benefits. If your automated work is being set up correctly, then the machine should run, just like the service of a window app (especially consolve) on the service is that if something fails, then you can re-app Can start and run it. This will not be so easy with a service, because to ensure that the program has to have additional code that it runs only once (once in your case) several times. Possibly you will not be able to execute your process when you start it, because you have to be careful about restarting the server. This means that if your server goes down in the process of running, you have to find out how to "move" the program, to think that it should only run the process for that time. Window apps do not suffer from this, because the process ends after the completion, so there is no additional code to prevent this process from running again.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -