Need help big time ....
I need to create a .net application that will perform some bulk operations on , say around 2,000,000 records, in a table. There is a window of opportunity in which the application should run and try to process as many rows as it can. I am thinking that if I can have multiple threads of the app take 2000 records at a time & process them, it should be able to process more. However, that will be pretty costly on the database server. From what I am told, the db server is a beefy machine and should be able to handle the pressure.
Also, by only taking 2000 rows at a time, should the application terminate in the middle of its processing, it would know where to pick up again.
So, I guess what I am asking is ...
1) How can I have the app pick up rows & lock those rows so that it would not be assigned to another thread?
2) What kind of intelligence can be programmed into the app that will allow for it to pick up processing where it last left off from?
Thanks
KP