to_unichar

Returns a unichar expression having the value of the specified integer expression.

Syntax

to_unichar(integer_expr)

Parameters

Usage

  • to_unichar, a string function, converts a Unicode integer value to a Unicode character value.

  • If a unichar expression refers to only half of a surrogate pair, an error message appears and the operation is aborted.

  • If a integer_expr is NULL, to_unichar returns NULL.

See also Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute to_unichar.

Related concepts
text, image, and unitext Datatypes
Related reference
char