Share via

Assembly and replication

Michael Hirsch 1 Reputation point
2022-06-14T10:14:13.203+00:00

Hello,

I am using a transactional replication that replicates stored procedures which are implemented in a clr assembly. The assembly and procedures are successfully replicated to the subscribers and work fine at the subscribers. Unfortunately changes to the assembly are not replicated. So when I change the assembly with "ALTER ASSEMBLY FROM 0x45..." in the published database the new version is installed in the published database (and works). But the transactional replication does not care about the change and does not replicate it to the subscribers.

I tried to alter the procedures at the publisher with "ALTER PROCEDURE ..." which leads to a replicated ddl command but the assembly is still unchanged.

I also tried this with a merge replication with the same result. SQL Server version is 15.0.4223.1.

Has anyone any ideas?

Thanks & Best regards,
Michael

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

2 answers

Sort by: Most helpful
  1. YufeiShao-msft 7,156 Reputation points
    2022-06-15T07:38:34.573+00:00

    Hi @Michael Hirsch ,

    If the assembly already exists, you cannot alter an assembly during synchronization

    -------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  2. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    2022-06-14T22:01:30.363+00:00

    An alternative, if not very palatable is to drop the procedures and the assembly and then recreate them. Now, that requires that DROP ASSEMBLY is replicated....

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.