You have to develop c#.net batch program for visual studio 2010. You will start copying the source code of another c#.net batch program used as template. In this way you will gain db connection class and other settings.
This program has to work on my database counting different types of data in different tables and save them as a report in a new table.
Another program will be developed by a new project will take these information to display or export in a report for the user.
Will give you more info about table structure after award you the project.