Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Indexes depend on collation?

Author  Topic 

ias0nas
Starting Member

36 Posts

Posted - 2010-10-14 : 04:46:09
This sounds like it should be easy to google but I can't find the answer!

I have a column named "job" in table named "jcjob" that it's collation is set to SQL_Latin1_General_CP1_CS_AS
This column also has an index on it.

If I do that:
SELECT jcjob.job, jcjob.job_name FROM jcjob
WHERE job.job COLLATE SQL_Latin1_General_CP1_CI_AS LIKE 'U10%'

Is the index still being used? Or is it specific to case sensitive in that case and not used for that SELECT statement?

Thanks

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-14 : 05:16:05
The execution plan will tell you that.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -