Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Collation and Indexed search

$
0
0

Hi All,

I am on SQL Server 2008 R2.

In my database server, collation_name on all the databases is Latin1_General_CI_AS. So it's case insensitive. I assume, that will mean the object names are case insensitive (when we use them in TSQL). If I am doing an indexed search, that too is case insensitive, does that look correct?

If I am doing "where column_name = 'abcd'", it does match with ABCD, Abcd and AbcD. Is that correct behaviour?

If I change the collation to case sensitive now. I guess the object names will become case sensitive, as well as the text matching. Does that mean, I need to re-create indexes again? Because I guess, when string search is case sensitive, values starting with 'a' and values starting with 'A' will be located at very different places in a clustered index. As opposed to case insensitive, where values starting with 'A' and 'a' will be together.

Your thoughts please.

Any general recommendations about collation case sensitivity?

Thanks in advance


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>