Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Transactional replication Modified stored procedure

$
0
0

Hi,

I have a requirement to consolidate live identical tables from different database to a central db.

Site tables have a primary key only unique to that site but not across site. In another words we can find same primary key in different locations. Compound primary key can’t be made on this tables

Transactional replication was set up with Xcall procedure for article update . I modified the sp_MSupdxxxxxx stored procedures (with 'Where' clause) to make sure updates are unique on the central server. To avoid overwriting the modified procedures I disabled the copying of Insert, Update, and Delete stored procedure in GUI. This worked well on a non-live table 

 While resyncing the live table I am getting an error ‘sp_MSins_xxxx_msrepl_ccs not found’.

I know this stored procedure is created on run time to update changes made after the initial snapshot. Since I disabled the copying of Insert, Update, and Delete stored procedure in GUI, ‘sp_MSins_xxxx_msrepl_ccs’ is not getting created.

Is there any way to create Custome ‘sp_MSupdxxxxxx’ and ‘sp_MSins_xxxx_msrepl_ccs ‘ for XCall operation from the publisher?. I am using SQL 2012 R2

Can anybody help me to get a solution?



Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>