?
Solved

SQL Server 2008 collation question

Posted on 2012-04-12
3
Medium Priority
?
1,317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Assisted Solution

by:jogos
jogos earned 668 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 1332 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 1332 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

762 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