Hi All,
What is COLLATE? I tried to look for references in the BOL but failed to find any good explanations. Why do we use collate in a create table script? Any sort of explanation will help!
Regards,
mkey!
I think collate is used when you want to change the default sort order. For example, you can use this option to determine whether the sorted order is case-sensitive.
I've never actually changed the default order myself, but that may just be my own inexperience.
after reading the BOL, SQL Server uses COLLATE command to identify the proper language to use. This is similar to setting the "Regional Settings" in a Windows environment (Start > > Settings > Control Panel > Regional Settings). Using the proper COLLATE command lets you set which language SQL Server uses (French, English, whatever). In that regard, it also affects sort order and comparison. If you type in an English 'A', you want it compared to all English letters, not Chinese (or other alphabet) letters. Likewise, you want it sorted by the English alphabet, not Greek or any other alphabet.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.