Update Every Column in a Table

Today at work I need to update every column in a table to remove all double quotes (“). It doesn’t matter so much what action needed to be undertaken on each column, but how would we to go about updating each column. Will we need to write out the update statement by hand. What if the table has hundreds of columns. What if this is but one table which will need to be updated in this way? The following script will produce update statements which update each column in a table to be that of the original column with the ” removed.

This statement can easily be edited to perform any action on the update column or it could be edited to differentiate the required actions based on the type of the column. Extend it how you see fit, anyway hope it helps someone.