Joining two tables with different collation settings

  • Can we execute a join on two tables with different collation settings? Why or why not?

    "Cannot resolve collation conflict for equal to operation." -Does this error always occur or are there any specific cases when this error occurs...? Is there any workaround or this problem?

    Would be great if someone would clarify my doubts...

  • Below link contains explanation as well as workaround for your problem

    http://www.developmentnow.com/g/113_2006_7_0_0_797273/Cannot-resolve-collation-conflict-for-equal-to-operation-.htm

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Thanks for replying..

  • deepthi818 (5/4/2010)


    Thanks for replying..

    still you need any help , you are welcome:-)

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • deepthi818 (5/3/2010)


    Can we execute a join on two tables with different collation settings? Why or why not?

    "Cannot resolve collation conflict for equal to operation." -Does this error always occur or are there any specific cases when this error occurs...? Is there any workaround or this problem?

    Would be great if someone would clarify my doubts...

    It will happen on any character based fields. So (n)(var)char etc as it needs to compare the codepages. Numeric you will be fine with.

    Is this a production database or just in test? If the collation issue has been caused by error it may be wise to just setup the database again.

    I see the issue all the time when the regional settings of the machine are left as US and SQL installed with default collation. Then on another server the regional settings will be correctly set to UK and this uses a different codepage. Pain in the arse to say the least!

  • I just encountered the situation while i was testing... not very critical.. Thanks for helping guys!

  • checkout this solution:

    http://www.dbanation.com/?tag=collation

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply