I would like to update all the columns in my table to remove the speech marks from the fields.
the below script will update on field
UPDATE tbtest SET [column 1] = REPLACE([column 1], '"', '')
I've written the below script to out all possible updates available from the columns, but I'm stuck on the last bit of the REPLACE script. any help on this.
SELECT 'UPDATE tbtest SET ' + COLUMN_NAME + ' = REPLACE(' + COLUMN_NAME + '' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'tbtest ' AND IS_NULLABLE = 'YES' AND DATA_TYPE IN ('char', 'nchar', 'varchar', 'nvarchar')