Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2012
»
SQL Server 2012 - T-SQL
»
Collation conflict between SQL 2012 SP1 and...
Collation conflict between SQL 2012 SP1 and SQL 2005 SP3 ?
Rate Topic
Display Mode
Topic Options
Author
Message
mtassin
mtassin
Posted Thursday, February 14, 2013 1:53 PM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 3:14 PM
Points: 3,250,
Visits: 65,561
I have the following error coming back at me
Msg 468, Level 16, State 9, Line 243
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
Except that the server collations are all SQL_Latin1_General_CP1_CI_AS
The database collations are SQL_Latin1_General_CP1_CI_AS
The Table collations are SQL_Latin1_General_CP1_CI_AS
and the specific column in question is using SQL_Latin1_General_CP1_CI_AS as its collation as well.
This worked fine with SQL 2008 R2 SP1 SQL_Latin1_General_CP1_CI_AS and SQL 2005 SP3, is this something to do with SQL 2012 SP1?
--Mark Tassin
MCITP - SQL Server DBA
Proud member of the Anti-RBAR alliance.
For help with Performance click this link
For tips on how to post your problems
Post #1420285
Lynn Pettis
Lynn Pettis
Posted Thursday, February 14, 2013 4:13 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
Unfortunately, we can't see what you see so it is hard to know what to tell you.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1420335
Jan Van der Eecken
Jan Van der Eecken
Posted Friday, February 15, 2013 4:51 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 3:10 PM
Points: 2,319,
Visits: 6,105
Mark, did you copy and paste the error message directly from SSMS? If yes, then they are indeed different. Just look closely, the one is Latin1_General_CI_AS, and the other one is SQL_Latin1_General_
CP1
_CI_AS (note the CP1 part).
--------------------------------------------------------------------------
The function of good software is to make the complex appear to be simple. (Grady Booch)
In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)
Post #1420478
Lynn Pettis
Lynn Pettis
Posted Friday, February 15, 2013 6:06 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:46 AM
Points: 21,832,
Visits: 27,858
Jan Van der Eecken (2/15/2013)
Mark, did you copy and paste the error message directly from SSMS? If yes, then they are indeed different. Just look closely, the one is Latin1_General_CI_AS, and the other one is SQL_Latin1_General_
CP1
_CI_AS (note the CP1 part).
Even more of a difference than that, one is a windows collation and the other a SQL collation.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1420489
Jan Van der Eecken
Jan Van der Eecken
Posted Friday, February 15, 2013 6:20 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 3:10 PM
Points: 2,319,
Visits: 6,105
Lynn Pettis (2/15/2013)
Jan Van der Eecken (2/15/2013)
Mark, did you copy and paste the error message directly from SSMS? If yes, then they are indeed different. Just look closely, the one is Latin1_General_CI_AS, and the other one is SQL_Latin1_General_
CP1
_CI_AS (note the CP1 part).
Even more of a difference than that, one is a windows collation and the other a SQL collation.
--------------------------------------------------------------------------
The function of good software is to make the complex appear to be simple. (Grady Booch)
In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)
Post #1420499
mtassin
mtassin
Posted Friday, February 15, 2013 7:25 AM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 3:14 PM
Points: 3,250,
Visits: 65,561
I'm aware of the differences between what is shown. However looking at the actual collations at the server, database, table and column levels they were always SQL_Latin1_General_CP1_CI_AS
In this case it turns out to somehow have been a busted linked server of all oddities.
Rebuilding the linked server that the queries were passing to resolved the collation conflict that was not there.
I had tried building it using SQL Native Client 10 and 11. 10 had worked when it was a 2008R2 server, and the client was still present on the server, 11 was working when I made actual connections to the SQL 2005 SP3 server.
When I changed the client to use MSOLEDB instead of the Native Client the collation error problems went away.
--Mark Tassin
MCITP - SQL Server DBA
Proud member of the Anti-RBAR alliance.
For help with Performance click this link
For tips on how to post your problems
Post #1420535
Jan Van der Eecken
Jan Van der Eecken
Posted Friday, February 15, 2013 10:04 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 3:10 PM
Points: 2,319,
Visits: 6,105
In other words, you are sorted?
--------------------------------------------------------------------------
The function of good software is to make the complex appear to be simple. (Grady Booch)
In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)
Post #1420651
mtassin
mtassin
Posted Friday, February 15, 2013 10:35 AM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 3:14 PM
Points: 3,250,
Visits: 65,561
Yes, I wanted to post above what the fix was in case anybody else runs into this.
If you're going from 2012 SP1 to 2005 SP3 (probably from 2012 of any flavor to 2005 of any flavor) and get a collation conflict that you are sure isn't there (because you have inspected everything from point a to point z).
Try deleting the linked server and recreating it. Try each of the most common connection libraries as well.
--Mark Tassin
MCITP - SQL Server DBA
Proud member of the Anti-RBAR alliance.
For help with Performance click this link
For tips on how to post your problems
Post #1420673
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.