Returns the Unicode scalar value for the first Unicode character in an expression.
uscalar(uchar_expr)
uscalar, a string function, returns the Unicode value for the first Unicode character in an expression.
If uchar_expr is NULL, returns NULL.
If uscalar is called on a uchar_expr containing an unmatched surrogate half, and error occurs and the operation is aborted.
See also Transact-SQL Users Guide.
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute uscalar.