Hello,
I have a c# job that calls a stored procedure which will update values in my database. The stored procedure only updates 25000 records per run (top 25000). Then in my c# code, I have a do/while loop that will repeatedly call that stored procedure until all 5 million records have been processed.
My problem, after updating around 125000 records (runs loop 5 times), it tells me the connection timed-out. It gives the error "Timeout period elapsed prior to completion of the operation"...
Is there a way to reset the connectiontimeout on each loop run instead of having that connectiontimeout number accumulate for all loop runs?
Thanks,
andegre
I have a c# job that calls a stored procedure which will update values in my database. The stored procedure only updates 25000 records per run (top 25000). Then in my c# code, I have a do/while loop that will repeatedly call that stored procedure until all 5 million records have been processed.
My problem, after updating around 125000 records (runs loop 5 times), it tells me the connection timed-out. It gives the error "Timeout period elapsed prior to completion of the operation"...
Is there a way to reset the connectiontimeout on each loop run instead of having that connectiontimeout number accumulate for all loop runs?
Thanks,
andegre