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

Tran Repl Stored Procedure Replication Issue

$
0
0

Hello everyone,  Having a bit of a challenge here.

We recently setup transactional replication in our environment.  Right now, things are working smoothly, with a few wrinkles we are ironing out.  This is where I could use some help. 

I added a stored procedure for replication, using the following command:

EXEC sp_addarticle @publication = N'Publisher',
	@article = N'cs_aspx_ClaimsPerformance',
	@source_owner = N'dbo',
	@source_object = N'cs_aspx_ClaimsPerformance',
	@type = N'PROC SCHEMA ONLY',
	@description = NULL,
	@creation_script = NULL,
	@pre_creation_cmd = N'drop',
	@schema_option = null,
	@identityrangemanagementoption = N'manual',
	@destination_table = N'cs_aspx_ClaimsPerformance',
	@destination_owner = N'dbo',
	@vertical_partition = N'false',
	@ins_cmd = N'CALL sp_MSins_dbocs_aspx_ClaimsPerformance',
	@del_cmd = N'CALL sp_MSdel_dbocs_aspx_ClaimsPerformance',
	@upd_cmd = N'SCALL sp_MSupd_dbocs_aspx_ClaimsPerformance',
	@force_invalidate_snapshot = 1
exec sp_refreshsubscriptions @publication = 'Publisher'

Now, the stored procedure does get replicated......in part.  This is what I get in th subscriber:

ALTER PROCEDURE [dbo].[cs_aspx_ClaimsPerformance]
	@QueryType INT = 1,
	@StartDate DATETIME = NULL,
	@EndDate DATETIME = NULL,
	@Description NVARCHAR(100) = NULL,
	@RowCount INT = 20,
	@Origin VARCHAR(100) = NULL,
	@SectorBlockID INT = NULL,
	@LeaderBCKey INT = NULL,
	@StartPeriodDescriptionID INT = NULL,
	@EndPeriodDescriptionID INT = NULL,
	@State NVARCHAR(100) = NULL,
	@InventoryID INT = NULL,
	@ShipMethodID INT = NULL,
	@ClaimType INT = NULL,
	@InvoiceDateStart DATETIME = NULL,
	@InvoiceDateEnd DATETIME = NULL,
	@DateShippedStart DATETIME = NULL,
	@DateShippedEnd DATETIME = NULL,
	@DeliveredDateStart DATETIME = NULL,
	@DeliveredDateEnd DATETIME = NULL,
	@InventoryCategoryID INT = NULL,
	@ClaimEnteredBY NVARCHAR(MAX) = NULL,
	@OrderEnteredBY NVARCHAR(MAX) = NULL
/* WITH ENCRYPTION */

AS

BEGIN
-- This is a placeholder implementation of the schema object to facilitate deferred creation of the actual implementation.
raiserror(N'This is a placeholder implementation of the schema object to facilitate deferred creation of the actual implementation.',16,-1)
END

Anyone got any ideas what is going on here?  Why am I getting this RAISERROR message vs the actual procedure code that is in the publisher database?

Thanks,

Nathan



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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