From: Cor Ligthert[MVP] on
If you want a Windows Service then start with a console application.

Adding threads to that is very easy.

All you have to do when you want it as service is to change the Project
properties, add a Windows Service Installer project, and then to install it
using the CommandLine Service Installer on MSDN.


"Andrea Caldarone" <fakeandrea.caldarone(a)poste.it> wrote in message
news:66A67844-FDCA-40CF-977E-ED75F7EA3FDA(a)microsoft.com...
> Hi all,
>
> I have SQL Server Agent and under it I've some jobs that runs with a
> definde schedule (they can run at the same time).
> SQL Server Agente doesn't belongs to SQL Server Express edition, so I'm
> lookig for a way to build a such schema with a .net windows service.
> Let's say I need 10 jobs:
>
> 1) it is better to have 10 windows services?
> 2) it is better to have 1 windows services with 10 threads?
>
> in the first case, I need to have 10 different project that installs 10
> different services with 10 different name (it is correct?)
> in the secound case, how can I tell the service (from the outside) to
> start/stop a single thread? I need to use remoting...
>
> Any suggestions are well accepted.