473,324 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Service Program Sample Code

Does anyone have some sample code for a VB.NET Service program. I need the service program to sleep and come alive every night around midnight. The program needs to open an MDB database, update one of the tables and then go back to sleep until the next day. Can this be done with a console app or does it need to be a service? I need it to run even if the server is logged off. Will a console program run from the scheduler if the computer is logged off?
Nov 20 '05 #1
3 1182
I did this once, but lost the code for it. However, you need to start the
service using the System account. This way it will continue to run once the
current user has logged off.

Regards - OHM
Bud Roble wrote:
Does anyone have some sample code for a VB.NET Service program. I
need the service program to sleep and come alive every night around
midnight. The program needs to open an MDB database, update one of
the tables and then go back to sleep until the next day. Can this
be done with a console app or does it need to be a service? I need
it to run even if the server is logged off. Will a console program
run from the scheduler if the computer is logged off?


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #2
CMG
Just build in a timer control that checks if it's midnight
ever minute...
-----Original Message-----
Does anyone have some sample code for a VB.NET Service program. I need the service program to sleep and come
alive every night around midnight. The program needs to
open an MDB database, update one of the tables and then go
back to sleep until the next day. Can this be done with
a console app or does it need to be a service? I need it
to run even if the server is logged off. Will a console
program run from the scheduler if the computer is logged
off?.

Nov 20 '05 #3
Use a service and use the system account to run it, that way no one needs to
be logged on.

Regards - OHM

CMG wrote:
Just build in a timer control that checks if it's midnight
ever minute...
-----Original Message-----
Does anyone have some sample code for a VB.NET Service

program. I need the service program to sleep and come
alive every night around midnight. The program needs to
open an MDB database, update one of the tables and then go
back to sleep until the next day. Can this be done with
a console app or does it need to be a service? I need it
to run even if the server is logged off. Will a console
program run from the scheduler if the computer is logged
off?
.


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: FS Liu | last post by:
Hi, In my current ATL server project, I have to parse the input in the client application's request to find out the different combination of parameters, instead of using SOAP. For this reason,...
4
by: Dao | last post by:
I have created a windows service called MyService. I followed the MSDN sample code to add the following code but it did not work. What I tried was that to start another or external program when...
2
by: Reshma Prabhu | last post by:
Hello, I have created an web service in C# and accessing it thrugh C++ code. But when i make a call through the client, the parameter does not reach the server but it does not show any error...
2
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging...
3
by: zxo102 | last post by:
Hi there, I have a python application (many python scripts) and I start the application like this python myServer.py start in window. It is running in dos window. Now I would like to put it...
7
by: Bryan Dickerson | last post by:
If I have a web service about which all I know is the URL, i.e. http:/server:portnum/methodname (no WSDL, no nothing else), can I reference and use a web service like this in a VB.Net program? And...
7
by: Chris Mullins | last post by:
I'm in the process of building a number of (Web) Services using .NET 3.0 and WCF. These services are intended to be deployed within the Intranet of a very, very large orginization. I need to...
9
by: =?Utf-8?B?UG90c2FuZw==?= | last post by:
Hi, I have a window service program created in c#. The window service program is installed and running. In the mean time, I have another c# application, I would like to know if there is a way to...
0
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.