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.[
^]