Advertisement

09.03.2007 at 05:24AM PDT, ID: 22803552
[x]
Attachment Details

"Cannot resolve collation conflict for equal to operation" error

Asked by gbshahaq in MS SQL Server

Tags: collation, conflict, resolve, cannot, equal

I get this error when running the query below.
"Msg 446, Level 16, State 9, Line 1
Cannot resolve collation conflict for equal to operation"

I have checked that all referenced columns and tables have the same collation - and they do:
SQL_Latin1_General_CP1_CI_AS

so why do I get this error, and more importantly, how can I resolve it?

select distinct company = p1.[name]
,            SIC = p1.sic
,            Employees = p1.emps
,            case when p1.duplicate is not null
                  then p2.[key]
                  else p1.[key]
            end
,            t.[registered number]
from Primary_Dupelist p1
left join primary_dupelist p2
      on p2.[duplicate] = p1.[key]
left join e_corporate_tree t
      on t.[registered number] = substring(p1.regno,2,len(p1.regno))
Start Free Trial
[+][-]09.03.2007 at 05:27AM PDT, ID: 19820316

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: collation, conflict, resolve, cannot, equal
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.03.2007 at 05:37AM PDT, ID: 19820366

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.03.2007 at 05:38AM PDT, ID: 19820378

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2007 at 05:39AM PDT, ID: 19820383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2007 at 05:41AM PDT, ID: 19820395

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628