• Great question, I'll keep that in mind as I also work with Czech_CI_AS collations.

    tommyh (5/25/2010)


    Out of curiousity. If one would like to get all strings containing a C from the below code... how would you do that in that collation?

    create table #t (string varchar (5))

    insert into #t (string) values ('ACH')

    insert into #t (string) values ('ACY')

    insert into #t (string) values ('AHHC')

    select string from #t

    where string like '%C%' -- will miss ACH

    drop table #t

    Suppose you have a Czech_CI_AS collation set up as your DB / table collation. Then you do this:

    create table #t (string varchar (5))

    insert into #t (string) values ('ACH')

    insert into #t (string) values ('ACY')

    insert into #t (string) values ('AHHC')

    select string from #t

    where string COLLATE Czech_BIN like '%C%' -- won't miss ACH

    drop table #t