Solved

SQL Server 2008 collation question

Posted on 2012-04-12
3
1,275 Views
Last Modified: 2012-05-17
Hi !

What is the difference between Latin1_General and Latin1_General_100 and Latin1_General_BIN

Thank you.
0
Comment
Question by:Rubicon2009
  • 2
3 Comments
 
LVL 25

Assisted Solution

by:jogos
jogos earned 167 total points
ID: 37841618
Check out the properties of the collation http://msdn.microsoft.com/en-us/library/ms190305(v=sql.105).aspx

SELECT * , COLLATIONPROPERTY(name, 'version') version
,COLLATIONPROPERTY(name, 'LCID') lcid
,COLLATIONPROPERTY(name, 'ComparisonStyle') ComparisonStyle
,COLLATIONPROPERTY(name, 'version') vercion
FROM fn_helpcollations()
where name like 'Latin_General%'
order by name

Open in new window

0
 
LVL 37

Assisted Solution

by:ValentinoV
ValentinoV earned 333 total points
ID: 37841691
Latin1_General_BIN is a binary collation:

"Binary collations sort data based on the sequence of coded values that are defined by the locale and data type. They are case sensitive. A binary collation in SQL Server defines the locale and the ANSI code page that will be used. This enforces a binary sort order. Because they are relatively simple, binary collations help improve application performance. (contd)"
(ref. http://msdn.microsoft.com/en-us/library/ms143726.aspx)

Latin1_General_100 is a _100 level collation:

"All _100 level collations support linguistic sorting with supplementary characters." - see the chapter called Supplementary Characters in the reference above
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 333 total points
ID: 37841696
jogos: I think you meant the following (there's a "1" missing in the collation name):

SELECT * , COLLATIONPROPERTY(name, 'version') version
,COLLATIONPROPERTY(name, 'LCID') lcid
,COLLATIONPROPERTY(name, 'ComparisonStyle') ComparisonStyle
,COLLATIONPROPERTY(name, 'version') vercion
FROM fn_helpcollations()
where name like 'Latin1_General%'
order by name

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question