I am going to write a console application that will run once a week at 2 a.m. on a Sunday morning. He is going to query the SQL server database, then do some calculations and then write the results to a new database.
It processes hundreds of thousands of records, so it will take several hours to complete.
I am going to create a C # console application and use the window scheduler to start it.
My questions:
1) Do you think this is a good approach? 2) In the past, similar console applications set the processor to 100% while it continuously loops. Is there a good way to handle threads properly, etc.
Any advice before I start would be greatly appreciated.
T
source
share