Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I want to create a windows service that query the database for every 2 minutes.I used the Visual studio 2005 IDE.
please suggest me some solution.

Thank you
Posted

See the Timer class in MSDN....................
 
Share this answer
 
Comments
Wanlambok 23-Aug-10 5:32am    
Reason for my vote of 5
Thank you so much...timer really did my works
You need to create a service application, and have it install, for which you need a service installer, included in your application, Search for creating a system service vb.net.

See here

Instead of using a timer component you need to use a threading timer because the timer component on the service will not work,

system.threading.timer
 
Share this answer
 
v4
Comments
tiggerc 10-Aug-10 11:37am    
finally got it sorted
You've already identified the solution - create a windows service. Go forth and code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900