I am trying to create a windows service using vb.net to read a sql table
every half hour and copy all new records created within each half hour
increment to another table. I also want to be able to email each new record
to a specific person. This system will need to run automatically. I know I
can do this using an exe com component using windows scheduler to trigger the
com componet, but I think that I can create the same type of application
using vb.net to create a windows service. Can I use this approach and is
there any good examples of using vb.net sql database commands when creating a
windows service?
Thank you
Bob H. 4 7798
Hi Bob,
Sounds like a Windows service is probably your best bet, and it works quite
well... I've done this myself a few times before for my clients, so
unfortunately I can't show my own code here - have a look at this example
(includes Timer-based functionality): http://www.developerfusion.com/show/3441/1/
HTH,
Patrick
"BobHutch" wrote: I am trying to create a windows service using vb.net to read a sql table every half hour and copy all new records created within each half hour increment to another table. I also want to be able to email each new record to a specific person. This system will need to run automatically. I know I can do this using an exe com component using windows scheduler to trigger the com componet, but I think that I can create the same type of application using vb.net to create a windows service. Can I use this approach and is there any good examples of using vb.net sql database commands when creating a windows service?
Thank you Bob H.
One more thing - in most (but not all) cases, code that you write in a
'normal' .NET application will also work in a Service, including sql database
commands...
Patrick
"P.Simpe-Asante" wrote: Hi Bob,
Sounds like a Windows service is probably your best bet, and it works quite well... I've done this myself a few times before for my clients, so unfortunately I can't show my own code here - have a look at this example (includes Timer-based functionality):
http://www.developerfusion.com/show/3441/1/
HTH, Patrick
"BobHutch" wrote:
I am trying to create a windows service using vb.net to read a sql table every half hour and copy all new records created within each half hour increment to another table. I also want to be able to email each new record to a specific person. This system will need to run automatically. I know I can do this using an exe com component using windows scheduler to trigger the com componet, but I think that I can create the same type of application using vb.net to create a windows service. Can I use this approach and is there any good examples of using vb.net sql database commands when creating a windows service?
Thank you Bob H.
P.Simpe-Asante,
Thank you very much. I was able to get it to work.
Bob
"P.Simpe-Asante" wrote: One more thing - in most (but not all) cases, code that you write in a 'normal' .NET application will also work in a Service, including sql database commands...
Patrick
"P.Simpe-Asante" wrote:
Hi Bob,
Sounds like a Windows service is probably your best bet, and it works quite well... I've done this myself a few times before for my clients, so unfortunately I can't show my own code here - have a look at this example (includes Timer-based functionality):
http://www.developerfusion.com/show/3441/1/
HTH, Patrick
"BobHutch" wrote:
I am trying to create a windows service using vb.net to read a sql table every half hour and copy all new records created within each half hour increment to another table. I also want to be able to email each new record to a specific person. This system will need to run automatically. I know I can do this using an exe com component using windows scheduler to trigger the com componet, but I think that I can create the same type of application using vb.net to create a windows service. Can I use this approach and is there any good examples of using vb.net sql database commands when creating a windows service?
Thank you Bob H.
Hi Bob
Sorry for dragging up an old thread.
I need to do something simliar to what you did. I can get the service installed and running but my timer is not firing.The OnStart and OnStop code is firing ok so i know the service is running.
I am using vs.net 2005 btw
Any advice?
Thanks
Shane
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: BobHutch |
last post by:
I am trying to create a windows service using vb.net to read a sql table
every half hour and copy all new records created within each half hour
increment to another table. I also want to be able...
|
by: Peter D. Dunlap |
last post by:
I have a number of web sites on my 2003 server, each of the
independent sites (i.e., not subdirectories of the localhost site).
The way I have always set these up in the past is:
1. Create a...
|
by: Val3 |
last post by:
Hi all.
I need to build dll(s) and windows services using VB .NET 2005 Express. When
I make File/New project the windows contain only Windows application,
Windows control library, Console...
|
by: SH |
last post by:
I wish to create a program (really a Windows Service) that sits and
waits for a client PC to communicate with it, but I can't come up with a
good method of doing so.
I want to have a service...
|
by: clsmith66 |
last post by:
I hope this is just something stupid I'm missing and someone can easily point
out my error. I'm trying to do a few turorials on windows services, and the
couple I found so far just create an event...
|
by: Lenny Shprekher |
last post by:
Hi,
I am trying to open old VS2002 solution (windows service) under Windows 2003
SP1 but it crashes every time. However I couldn't create new blanc windows
service solution too, same issue....
|
by: mail.microsoft.com |
last post by:
Hi,
I would like to write a service in C# and I have the need to display a UI
with status information, statistics, etc. If I use the Windows Service
project in C#, I noticed that the...
|
by: =?Utf-8?B?cm9zczYxMw==?= |
last post by:
I'm puzzled by an error message encountered while creating a Windows Service.
In particular, I'm creating a second Windows Service within a Windows
Service project, using Visual Studio 2005. The...
|
by: teejayem |
last post by:
I am having problems creating a Windows Service using Visual Studio
2005.
Code as follows:-
Imports System.IO
Imports System.Net.Mail
|
by: Harry Bellafonte |
last post by:
Hi
I have created a Windows Sesrvice through a reg file. This is the
content of the reg file:
Windows Registry Editor Version 5.00
"Description"="Starts the User Process."
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |