Solved

SQL Server 2008 collation question

Posted on 2012-04-12
3
1,300 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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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