UPDATE Customer
SET CompanyName= REPLACE(CompanyName,CHAR(150),CHAR(45))
WHERE CompanyName Like '%' + CHAR(150) + '%'
Tuesday, October 7, 2008
Search & Replace SQL Characters
Here is how to replace m-dash characters with a dash character:
Labels:
SQL Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment