Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello, Guys I am new to this stuff and also new to vb.net, i have a question about vb.net, My problem is ------
i want to make a program in vb.net that check database table time by time(1 hour), and execute command like "select count(*) from tablename".
Posted
Comments
shreekar 27-Mar-12 15:06pm    
What have you tried so far?
[no name] 27-Mar-12 15:15pm    
What part do you need help with? The database access or the timing?
wizardzz 27-Mar-12 16:08pm    
Sounds easy, know how to use a loop, a timer, a thread?
Sergey Alexandrovich Kryukov 27-Mar-12 16:40pm    
What's the problem?
--SA

Please see my past answer to a related question:
Polling Database with Timer[^].

—SA
 
Share this answer
 
If you're having trouble figuring out how to connect to the database and run your SQL command, you might want to start with a tutorial. You can find some on google[^].

As stated in the comments, you probably will want to use a timer control in order to run your SQL every hour. For that you should research the timer class on MSDN.[^]
 
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