Replication-replication distribution Subsystem:agent xxxxxx failed. Column names in each table must is unique

Source: Internet
Author: User

I have recently encountered a wonderful question about publishing a subscription (Replication), and I hereby record this case. We have a large number of alarms on a SQL Server database server. The alarm information is as follows:

description:replication-replication distribution Subsystem:agent xxxxxx failed. Column names in each table must is unique. Column name ' xxxxx ' in table ' dbo.xxxxxx ' was specified more than once.

After a detailed examination, analysis, found the cause and consequences of this error. For the moment, we'll use a for tablename, and C for the field/column name on the table. The maintenance personnel of the system are required to modify table A, add field C, but the table has a publish subscription, so he first executes the script to increase the field C at the subscriber and then goes to the Publisher to execute the script that adds field C, and the result is this error. Replication to synchronize the modification of a table from the Publisher to the Subscriber, the result of this error is that a table already has field C on the Subscriber. Normally, you should add a field at the publisher c,replication will automatically sync to the Subscriber.

At first this mistake let me confused, do not know why to report such a mistake. The source of the problem is not discovered until detailed inspection and inference validation. It can be said that the smattering of replication led to this error, I think developers and DBAs should warning!

Replication-replication distribution Subsystem:agent xxxxxx failed. Column names in each table must is unique

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.