A table I have has two columns: ID and Value. A portion of certain strings in the second column need to be changed.
Example of Table:
ID            Value
---------------------------------
1             c:\temp\123\abc\111
2             c:\temp\123\abc\222
3             c:\temp\123\abc\333
4             c:\temp\123\abc\444
Now the 123\ in the Value string is not needed. I tried UPDATE and REPLACE:
UPDATE dbo.xxx
SET Value = REPLACE(Value, '%123%', '')
WHERE ID <= 4
SQL Server does not indicate an error when I run the script, but it also does not update anything. How come?