REVERSE
string transform
What changes
- Input
- string arguments
- Output or change
- string or integer
- Return type
- varchar or nvarchar
Syntax at a glance
REVERSE ( string_expression )
Work example
Reverse characters or bytes in a controlled transform.
Test Unicode, trailing spaces, collation, empty input, and maximum output length.
Check your work Do not use reversal as encryption or as a replacement for Unicode normalization.
Open Microsoft Learn for full syntax, permissions, and details for your version.