Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1742
  • Last Modified:

cannot resolve the collation conflict between


expert,

The SQL security login failed the error is below, any idear to fix it? (SQL 2008).

cannot resolve the collation conflict between "Latin1_General_CI_AS_KS_WS" and SQL_Latin1_General_CP1_CI_AS in the UNIION operation.  Error 468

Thanks,

Lynn
0
yrcdba7
Asked:
yrcdba7
  • 4
  • 3
  • 2
1 Solution
 
8080_DiverCommented:
That is looking like a collation conflict in a query and not a login.  

You can decide which collation you want as output and then cast every column and table from the "wrong" collation to the "right" collation.  (It's a pain but it's even more fun to rebuild the database with a new collation and then sort out the bugs from other queries' JOINs. ;-)
0
 
Daniel_PLDB Expert/ArchitectCommented:
Isn't it an error prompted when viewing securables tab in login properties using SSMS?
This problem should be resolved in SSMS 2008 (SQL Server Management Studio).
0
 
8080_DiverCommented:
That's not the only way to get one and, since the message references in the UNION operation, I am thinking it is a table collation issue.

Check out:
Collation Error 468
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Daniel_PLDB Expert/ArchitectCommented:
I know but the same is in error message from situation I posted ;)
What pointed me to that is not exact quetion 'The SQL security login failed ...'
The best will be to hear from author from what he/she get's that error?
0
 
8080_DiverCommented:
I will admit that the message opens with a statement that seemingly contradicts the contents of the error message.
0
 
yrcdba7Author Commented:
This is error message when I click security login securibles.
cannot resolve the collation conflict between "Latin1_General_CI_AS_KS_WS" and SQL_Latin1_General_CP1_CI_AS in the UNIION operation.  Error 468

i recreaed login, so far user can access the server but the securibles still has this error. I agree it is table and database collation changed. I have to
change the collation for each of them. It is painful to change one by one table and database.


0
 
yrcdba7Author Commented:
Daniel_PL

Isn't it an error prompted when viewing securables tab in login properties using SSMS?
Yes, but I don't know how to solve it from management studio.
0
 
Daniel_PLDB Expert/ArchitectCommented:
It's a problem with different collations in master database and the database in which login is mapped as a db user.
You can check database collations by running:
EXEC sp_msforeachdb 'SELECT ''?'' AS [Database],DATABASEPROPERTYEX(''?'', ''Collation'') SQLCollation;'

I think you should change collactions so they can fit together.

Take care,
Daniel
0
 
Daniel_PLDB Expert/ArchitectCommented:
Have it solved your problem?
As i wrote before, the problem lies in incompatible collations between master database and database in which login is mapped in.
Additionally it's not harmless to change master database collation - it implies rebuilding master db.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now