Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
String Functions (Transact-SQL)

String Functions (Transact-SQL)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

The following scalar functions perform an operation on a string input value and return a string or numeric value:

ASCII           

LTRIM           

SOUNDEX           

CHAR           

NCHAR           

SPACE           

CHARINDEX           

PATINDEX           

STR           

CONCAT

QUOTENAME           

STUFF           

DIFFERENCE           

REPLACE           

SUBSTRING           

FORMAT

REPLICATE           

UNICODE           

LEFT           

REVERSE           

UPPER           

LEN           

RIGHT           

 

LOWER           

RTRIM           

 

All built-in string functions are deterministic. This means they return the same value any time they are called with a specific set of input values. For more information about function determinism, see Deterministic and Nondeterministic Functions.

When string functions are passed arguments that are not string values, the input type is implicitly converted to a text data type. For more information, see Data Type Conversion (Database Engine).

Community Additions

ADD
Show:
© 2015 Microsoft