I need to update a huge table (over 200 million records, 20+ columns)
I tried to update one column:
update Table1 set [Customer]=Null where [Customer]='-' or len([customer])=0
And it took over 2 hours. I tried it on all columns and it's still running, for over 5 days now.
update Table1 set [Name]=Null where [Name]='-' or len([Name])=0
update Table1 set [Email]=Null where [Email]='-' or len([Email])=0
...
BTW- the table does not have any indexes or triggers, only data. The DB is not in use and recovery mode is simple.
Is there any more efficient way to update big tables?