COLLATIONPROPERTY

statements
#tsql#statements

Syntax

COLLATIONPROPERTY ( 'collation_name' , 'property' )

Return Type

sql_variant

Property Descriptions

PropertyReturn TypeDescription
CodePageintCode page of the collation.
LCIDintWindows LCID of the collation.
ComparisonStyleintWindows comparison style of the collation.
VersionintVersion of the collation.
SortOrdertinyintSort order ID of the collation (SQL Server collations only).

Remarks

Returns information about a specified collation.

Example

SELECT COLLATIONPROPERTY('database_name', 'CodePage') AS CodePage;