UNISTR
string transform
What changes
- Input
- string arguments
- Output or change
- string or integer
- Return type
- A string value whose length and type depend on the input types.
Syntax at a glance
UNISTR ( 'character_expression' [ , 'unicode_escape_character' ] )
Work example
Write a Unicode literal from escape sequences supported by SQL Server 2025.
Use it for fixed test literals and keep user text in typed parameters.
Check your work The escape character controls how code points are read, so inspect the resulting Unicode value.
Open Microsoft Learn for full syntax, permissions, and details for your version.