UNICODE (SQL Server Compact Edition)

Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.

Syntax

UNICODE ( 'ncharacter_expression' ) 

Arguments

  • 'ncharacter_expression'
    An expression whose type can be implicitly converted to nvarchar or ntext.

Return Value

int

Example

The following example returns the names of the companies along with the integer value, as defined by the Unicode standard, for the first character of each company name.

SELECT CompanyName, UNICODE(CompanyName)
FROM Customers
ORDER BY CompanyName