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/system.data.sqlclient.sqldatareader%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2

https://msdn.microsoft.com/en-us/library/haa3afyz%28v=vs.110%29.aspx


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -