Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 765375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:52:50+00:00 2026-05-14T16:52:50+00:00

I’ve been going around this but I haven’t found a solution for my problem.

  • 0

I’ve been going around this but I haven’t found a solution for my problem. My sql query is:

SELECT 
   dbo.Country.CtyRecID, dbo.Country.CtyShort, dbo.Notification.NotRecID,
   dbo.Notification.NotName, dbo.TemporalSuspension.TCtsCode, 
   dbo.TemporalSuspension.TCtsCodeRecID,
   dbo.TaxPhylum.PhyName AS Taxon, dbo.TemporalSuspension.TCtsNotes, 
   dbo.TemporalSuspension.TCtsRecID,
   dbo.TemporalSuspension.TCtsKgmRecID, 
   CASE dbo.TemporalSuspension.TCtsKgmRecID WHEN 1 THEN 'Animals'
         WHEN 2 THEN 'Plants' ELSE 'All' END AS Kingdom
FROM  
   dbo.TemporalSuspension 
INNER JOIN dbo.Notification 
   ON dbo.TemporalSuspension.TCtsStartNotRecID = dbo.Notification.NotRecID 
INNER JOIN dbo.Country 
   ON dbo.TemporalSuspension.TCtsCtyRecID = dbo.Country.CtyRecID 
INNER JOIN dbo.TaxPhylum 
   ON dbo.TemporalSuspension.TCtsCodeRecID = dbo.TaxPhylum.PhyRecID 
      AND dbo.TemporalSuspension.TCtsCode LIKE 'PHY'

UNION ALL

SELECT 
    dbo.Country.CtyRecID, dbo.Country.CtyShort, dbo.Notification.NotRecID, 
    dbo.Notification.NotName, dbo.TemporalSuspension.TCtsCode, 
    dbo.TemporalSuspension.TCtsCodeRecID, 
    dbo.TaxClass.ClaName AS Taxon, dbo.TemporalSuspension.TCtsNotes, 
    dbo.TemporalSuspension.TCtsRecID, 
    dbo.TemporalSuspension.TCtsKgmRecID, 
    CASE dbo.TemporalSuspension.TCtsKgmRecID WHEN 1 THEN 'Animals' 
        WHEN 2 THEN 'Plants' ELSE 'All' END AS Kingdom
FROM  
   dbo.TemporalSuspension 
INNER JOIN dbo.Notification 
   ON dbo.TemporalSuspension.TCtsStartNotRecID = dbo.Notification.NotRecID 
INNER JOIN dbo.Country 
   ON dbo.TemporalSuspension.TCtsCtyRecID = dbo.Country.CtyRecID 
INNER JOIN dbo.TaxClass 
   ON dbo.TemporalSuspension.TCtsCodeRecID = dbo.TaxClass.ClaRecID 
      AND dbo.TemporalSuspension.TCtsCode LIKE 'CLA'

But I don’t understand why it doesn’t work, I keep getting this error :

Cannot resolve collation conflict for column 7 in SELECT statement.

What’s wrong? I’ve used this other times and I never got this problem. According to the error the dbo.TaxPhylum.PhyName AS Taxon, and dbo.TaxClass.ClaName AS Taxon, is the thing giving the problem, but I don’t really understand why, both columns have the same type and everything.

EDIT: This is the result obtained with the query, how do I get around this?

Column Name Table Name  collation_name
PhyName vDecisionsExpanded  Latin1_General_CI_AS
ClaName vDecisionsExpanded  SQL_Latin1_General_CP1_CI_AS

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:52:50+00:00Added an answer on May 14, 2026 at 4:52 pm

    Try this query in your database:

    SELECT 
        col.name 'Column Name',
        OBJECT_NAME(object_id) 'Table Name',
        col.collation_name 
    FROM sys.columns col
    WHERE col.system_type_id IN (35, 99, 167, 175, 231, 239) -- TEXT, NTEXT, VARCHAR etc.
    

    It will show you all string-related columns in your database, and their collation.

    The error message says that column 7 is the culprit – that would be dbo.TaxPhylum.PhyName – so also check the TaxPhylum database. Is the collation in that database different from your normal database??

    UPDATE:
    if you have a collation conflict, you can do two things:

    1) if it’s only a single or a few columns in a SELECT, just add the COLLATE ..... modifier to them:

    SELECT 
       .....
       dbo.TaxPhylum.PhyName COLLATE SQL_Latin1_General_CP1_CI_AS AS Taxon, 
       .....
    

    2) if it’s a lot of columns, you might want to consider to modify the COLLATION on those columns / tables or in that database all together

    • How to change database or server collation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 370k
  • Answers 370k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer GCC is right in this case, and Visual Studio mistakenly… May 14, 2026 at 6:43 pm
  • Editorial Team
    Editorial Team added an answer MSVC: Intentionally not implemented unless it overlaps with C++ GCC:… May 14, 2026 at 6:43 pm
  • Editorial Team
    Editorial Team added an answer No, it's not bad practice, partitioning the tasks by the… May 14, 2026 at 6:43 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.