Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Joining two tables with different collation settings Expand / Collapse
Author
Message
Posted Monday, May 03, 2010 11:24 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, July 29, 2010 8:53 AM
Points: 13, Visits: 62
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...


Post #915071
Posted Tuesday, May 04, 2010 1:18 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
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----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #915106
Posted Tuesday, May 04, 2010 5:01 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, July 29, 2010 8:53 AM
Points: 13, Visits: 62
Thanks for replying..
Post #915189
Posted Tuesday, May 04, 2010 5:30 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562, Visits: 3,451
deepthi818 (5/4/2010)
Thanks for replying..
still you need any help , you are welcome


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #915206
Posted Tuesday, May 04, 2010 6:36 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 7:40 AM
Points: 983, Visits: 13,348
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!
Post #915246
Posted Tuesday, May 04, 2010 9:22 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, July 29, 2010 8:53 AM
Points: 13, Visits: 62
I just encountered the situation while i was testing... not very critical.. Thanks for helping guys!
Post #915402
Posted Tuesday, May 04, 2010 1:53 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, April 24, 2013 1:10 PM
Points: 646, Visits: 729
checkout this solution:
http://www.dbanation.com/?tag=collation


Maninder
www.dbanation.com
Post #915632
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse