uscalar

Returns the Unicode scalar value for the first Unicode character in an expression.

Syntax

uscalar(uchar_expr)

Parameters

Usage

  • 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.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute uscalar.

Related reference
ascii