N
Nishen
Hi,
I want my service to sit in an endless loop and run a
stored procedure every say, 1 hour.
protected override void OnStart(string[] args)
{
while(1=1)
{
open connection
run sp
close connection
}
The problem is that the service cannot be started and
bombs out. What am doing wrong here?
tia
Nishen
I want my service to sit in an endless loop and run a
stored procedure every say, 1 hour.
protected override void OnStart(string[] args)
{
while(1=1)
{
open connection
run sp
close connection
}
The problem is that the service cannot be started and
bombs out. What am doing wrong here?
tia
Nishen