Replace"> Replace">
Returns a string (varchar or nvarchar) where all occurrences of a specified sub string is replaced with another sub string.
Parameters:
SELECT REPLACE('This is my string', 'is', 'XX') -- Returns 'ThXX XX my string'.
Notes:
varchar(max) or nvarchar(max), the replace function truncates the return value at 8,000 chars.nvarchar if one of the input values is nvarchar, or varchar otherwise.NULL if any of the input parameters is NULL