In one of my module i need to write a windows service that will periodically check the database to see what tasks are outstanding.

?) How to use connection in windows service.