Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CODEPOINT (SSIS Expression)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the Unicode code point of the leftmost character of a character expression.

CODEPOINT(character_expression)

character_expression

Is a character expression whose leftmost character will be evaluated.

character_expression must have the DT_WSTR data type.

CODEPOINT returns a null result if character_expression is null or an empty string.

This example uses a string literal. The return result is 77, the Unicode code point for M.

CODEPOINT("Mountain Bike")

This example uses a variable. If Name is Touring Front Wheel, the return result is 84, the Unicode code point for T.

CODEPOINT(@Name)

Community Additions

ADD
Show:
© 2015 Microsoft