sql - Update table if table contains more than 500000 rows of data -
i have around 500000 rows (image url) in database table, task check if image url responding or not need update table result (if responding yes else no).
first thought take rows dataset , update rows in dataset update database, when loading data dataset getting error outofmemoryexception
. not able data dataset.
i thought update rows 1 one, taking time , every time database hitting not good. working on asp.net application using c# , sql
so if have better idea please let me know.
thank you.
instead of dataset
use sqldatareader
read , process data in loop.
https://msdn.microsoft.com/en-us/library/haa3afyz%28v=vs.110%29.aspx
Comments
Post a Comment