Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the meaning of Kanatype Sensitive KS and width sensitive

Tags:

sql

When creating new database I had to set the collation type or set its default....fine.

But actually I need to know what does Kanatype Sensitive(KS) and width sensitive means, its known for me that for example the case sensitive means that the letters are sensitive to upper and lower cases what about the Kanatype Sensitive and width sensitive??

like image 667
Islam Avatar asked Sep 20 '11 17:09

Islam


People also ask

What is Kanatype sensitive?

Kanatype Sensitive. Distinguishes between the two types of Japanese kana characters: Hiragana and Katakana. If this option is not selected, SQL Server considers Hiragana and Katakana characters to be equal for sorting purposes. Width Sensitive.

What are different types of collation sensitivity in SQL Server?

The options associated with a collation are case sensitivity, accent sensitivity, kana sensitivity, width sensitivity, and variation-selector sensitivity.

What does CI mean in collation?

The collation of the SQL Server is set to SQL_Latin1_General_CP1_CI_AS. Break down of the collation setting is as below: SQL – All SQL Server collations will have the prefix SQL. Latin1_General – represents the sort rule, CI means case insensitive and AS means accent sensitive.

Which collation is best in SQL Server?

However here are the settings we typically recommend: Set the default collation to SQL_Latin1_General_CP1_CI_AS. Ensure that you have SQL Server running in Case Insensitive mode. We use NCHAR, NVARCHAR string types so all data is unicode, so no character set is specified.


1 Answers

Both have to do with sorting and typically you would not select these two options. Here is a description couresty of Microsoft.

Kanatype Sensitive

Distinguishes between the two types of Japanese kana characters: Hiragana and Katakana.

If this option is not selected, SQL Server considers Hiragana and Katakana characters to be equal for sorting purposes

Width Sensitive

Distinguishes between a single-byte character and the same character when represented as a double-byte character.

If this option is not selected, SQL Server considers the single-byte and double-byte representation of the same character to be identical for sorting purposes.

like image 121
WPFNewbie Avatar answered Oct 16 '22 21:10

WPFNewbie