Microsoft KB Archive/270042

= Description of SQL Server compatibility collations =

Article ID: 270042

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 2005 Standard Edition
 * Microsoft SQL Server 2005 Developer Edition
 * Microsoft SQL Server 2005 Enterprise Edition
 * Microsoft SQL Server 2005 Express Edition
 * Microsoft SQL Server 2005 Workgroup Edition

-



This article was previously published under Q270042



SUMMARY
In SQL Server 2000, every collation has a unique name. SQL Server 2000 Books Online documents the format of collation names for SQL Server collations and Microsoft Windows collations, the two most common classes of collations. However, there is a third class of collation called a &quot;compatibility collation&quot; (or &quot;obsolescent collation&quot;) that has a different name syntax.

Compatibility collations are only used on databases that have been upgraded from a Microsoft SQL Server 7.0 server or a Microsoft SQL Server 6.5 server that had a combination of code page, sort order or Unicode collations that are not supported by any of the standard SQL Server or Windows collations.



MORE INFORMATION
Following is the general structure of a collation name in SQL Server:

 ::= 


 * 


 * 

 is defined in the SQL Server 2000 Books Online topic &quot;Windows Collation Name&quot;.  is defined in the Books Online topic &quot;SQL Collation Name&quot;.  is not defined in SQL Server Books Online.

The format of a compatibility collation name is:

 ::=

Compatibility_SortOrderDecimal_lcidHex_CompStyleHex

The sort order in a compatibility collation is represented with a decimal number. The locale ID (LCID) and the Unicode comparison style are represented with hexadecimal numbers. For example, if a database collation is named &quot;Compatibility_51_409_30001&quot;, it should be interpreted as:

Sort order 51 (Dictionary order, case-sensitive)

LCID 0x409 = 1033 (General Unicode)

Default Unicode comparison style 0x30001 = 196609 (case insensitive, accent sensitive, Kana insensitive, width insensitive)

You can find a list of sort order IDs in the SQL Server 7.0 Books Online topic &quot;Sort Order IDs&quot;. Unicode locale IDs are in the SQL Server 7.0 Books Online topic &quot;Unicode Collation&quot;. You can find a description of the Unicode comparison style bits in the following article in the Microsoft Knowledge Base:

233312 INF: Customizing SQL/MSDE Unattended Installation Files

Additional query words: compatibility collation designator

Keywords: kbinfo KB270042

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.