Advertisement

07.05.2004 at 09:49AM PDT, ID: 21048175
[x]
Attachment Details

Cannot resolve collation conflict for equal to operation.

Asked by kinton in Databases Miscellaneous

Tags: collation, conflict, resolve, cannot, equal

Hi,

Can anyone tell me why I am getting the following error message and how to solve it for the SQL code below:

Cannot resolve collation conflict for equal to operation.


As you can see, ContactId is the primary Key I always link back to.

Points worth noting.

All tables are in the same database
ContactId has the same field type, field length and collation type in all instances.
I am running this on SQL server 2000 in query analyzer



SELECT     (SELECT     COUNT(*)
                       FROM          tblcontactprofiles
                       WHERE      contactid = tblcontacts.contactid AND activestatus = 'A') AS Profiles, ISNULL(Surname, '') + ', ' + ISNULL(Title, '') + ' ' + ISNULL(Christian, '')
                      AS Contact, Surname AS Expr1,
                          (SELECT     MAX(contacttype)
                            FROM          tblcontacttypes
                            WHERE      contacttypeid = tblcontacts.contacttypeid) AS jobfunction,
                          (SELECT     MAX([emailaddress])
                            FROM          tblemailaddresses
                            WHERE      contactid = tblcontacts.contactid) AS email,
                          (SELECT     COUNT(*)
                            FROM          tblinvestmentplans
                            WHERE      contactid = tblcontacts.contactid) AS investmentplans, LEN(AdditionalResponsibilities) / 4 AS AdditionalContactTypes,
                      CustomerAccountNumber AS Expr2, *
FROM         dbo.tblContacts
WHERE     (EducationNumber = 3573)

thanks in advanceStart Free Trial
[+][-]07.05.2004 at 06:54PM PDT, ID: 11477117

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.

 
[+][-]07.06.2004 at 01:17AM PDT, ID: 11478706

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.

 
[+][-]07.06.2004 at 01:34AM PDT, ID: 11478780

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.

 
[+][-]07.06.2004 at 09:27AM PDT, ID: 11482833

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.

 
[+][-]07.06.2004 at 01:47PM PDT, ID: 11485785

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.

 
[+][-]07.08.2004 at 02:15AM PDT, ID: 11499903

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.

 
[+][-]07.08.2004 at 02:15AM PDT, ID: 11499906

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.

 
[+][-]07.08.2004 at 02:37AM PDT, ID: 11499985

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: Databases Miscellaneous
Tags: collation, conflict, resolve, cannot, equal
Sign Up Now!
Solution Provided By: sandeshj
Participating Experts: 4
Solution Grade: A
 
 
[+][-]08.09.2004 at 03:52PM PDT, ID: 11758010

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.

 
[+][-]08.09.2004 at 09:15PM PDT, ID: 11759467

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.

 
[+][-]08.09.2004 at 09:19PM PDT, ID: 11759483

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.30.2004 at 06:39AM PDT, ID: 12189771

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]10.04.2004 at 03:37PM PDT, ID: 12222117

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]07.20.2005 at 09:07AM PDT, ID: 14486143

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.

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