Trims the specified expression of trailing blanks.
rtrim(char_expr | uchar_expr)
select rtrim("abcd ")
-------- abcd
For Unicode, a blank is defined as the Unicode value U+0020.
If char_expr or uchar_expr is NULL, returns NULL.
Only values equivalent to the space character in the current character set are removed.
See also Transact-SQL Users Guide.
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute rtrim.