SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Collation error on Transactional Replication


Collation error on Transactional Replication

Author
Message
johnmcp
johnmcp
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 360
I am getting an error on a replication subscriber that had previously been working fine. This is the error message:

Command attempted:
if object_id(N'sys.sp_MSrestoresavedforeignkeys', 'P') < 0 exec sys.sp_MSrestoresavedforeignkeys
(Transaction sequence number: 0x0006FC5A0009580901F900000000, Command ID: 1)

Error messages:
Cannot resolve the collation conflict between "Latin1_General_100_CI_AS_KS_WS_SC" and "Latin1_General_CI_AS" in the equal to operation. (Source: MSSQLServer, Error number: 468)
Get help: http://help/468
Cannot resolve the collation conflict between "Latin1_General_100_CI_AS_KS_WS_SC" and "Latin1_General_CI_AS" in the equal to operation. (Source: MSSQLServer, Error number: 468)
Get help: http://help/468
Cannot resolve the collation conflict between "Latin1_General_100_CI_AS_KS_WS_SC" and "Latin1_General_CI_AS" in the equal to operation. (Source: MSSQLServer, Error number: 468)
Get help: http://help/468
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "Latin1_General_100_CI_AS_KS_WS_SC" in the equal to operation. (Source: MSSQLServer, Error number: 468)
Get help: http://help/468



Some details:
It is a push subscription from a SQL Server 2008 R2 publisher to a SQL Server 2012 subscriber that is a member of an AlwaysOn Availability Group.
Two things changed before this error appeared:
- I added a new table to the subscription and marked for re-initialization.
- There was a typo in the subscriber DB name so I dropped the subscription, renamed the database and then recreated the subscription to point at the correct database name.
- There are other tables in the subscription database besides those that are being replicated.

I have verified that both databases are using the same collation and that all columns of replicated tables also have the same collation.
Probably recreating the publication and subscription would fix the issue but I'm reluctant to do this because I don't want to create the snapshot again due to the concurrency issues it creates on the publisher db.
Gianluca Sartori
Gianluca Sartori
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10200 Visits: 13351
Do publisher and subscriber have the same server collation?

--Gianluca Sartori

How to post T-SQL questions
spaghettidba.com
@spaghettidba
johnmcp
johnmcp
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 360
Yes they do. Both are Latin1_General_CI_AS
johnmcp
johnmcp
SSC-Enthusiastic
SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)SSC-Enthusiastic (166 reputation)

Group: General Forum Members
Points: 166 Visits: 360
I had to take the nuclear option and recreate the subscription database. Now it is working again.
If anyone has a suggestion as to the original cause however I would be grateful, because I don't want to have to blow away my database if this happens again.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search