ReplaceMax

Replaces all occurrences of a specified string value with another string value, regardless of occurrence string size.
  • Free Function
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

SELECT SQLHTTP.net.ReplaceMax ( @Text, @Find, @Replacement )

Arguments:

Name Type Description
@Text nvarchar(MAX) The string expression to be searched.
@Find nvarchar(MAX) The string expression to be found.
@Replace nvarchar(MAX) The replacement string.

Return Type:

nvarchar(MAX)

Remarks:

This function is similar to SQL Server’s REPLACE function, but all parameters can be of type nvarchar(MAX).

See Also: