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

COLLATIONPROPERTY (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

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 property of a specified collation in SQL Server 2016.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database, Azure SQL Data Warehouse Public Preview.

Topic link icon Transact-SQL Syntax Conventions

COLLATIONPROPERTY( collation_name , property )

collation_name

Is the name of the collation. collation_name is nvarchar(128), and has no default.

property

Is the property of the collation. property is varchar(128), and can be any one of the following values:

Property name

Description

CodePage

Non-Unicode code page of the collation.

LCID

Windows LCID of the collation.

ComparisonStyle

Windows comparison style of the collation. Returns 0 for all binary collations .

Version

The version of the collation, derived from the version field of the collation ID. Returns 2, 1, or 0.

Collations with "100" in the name) return 2.

Collations with "90" in the name) return 1.

All other collations return 0.

sql_variant

SELECT COLLATIONPROPERTY('Traditional_Spanish_CS_AS_KS_WS', 'CodePage');

Here is the result set.

1252 

Community Additions

ADD
Show:
© 2015 Microsoft