You need to use an UPDATE statement!
The replace in the SELECT just changes the output not the data in the table.
BEGIN TRAN
UPDATE Customers SET Address = REPLACE(Address, char(10) + char(13), ' ') .... etc
--Check you like the change
SELECT * FROM Customers
--COMMIT --uncomment this to commit the changes.
pjp
2009-08-06 11:36:54