create procedure sys.sp_MSgetonerow
(@tablenick int,
@rowguid uniqueidentifier,
@pubid uniqueidentifier = NULL)
as
declare @retcode smallint
declare @procname sysname
/*
** Check to see if current publication has permission
*/
exec @retcode = sys.sp_MSrepl_PAL_rolecheck @pubid = @pubid, @tablenick = @tablenick
if (@retcode <> 0) or (@@error <> 0)
return 1
select @procname = 'dbo.' + select_proc from dbo.sysmergearticles where nickname = @tablenick and pubid=@pubid
exec @retcode = @procname @maxschemaguidforarticle = NULL, @type =1, @rowguid=@rowguid
IF @@ERROR<>0 or @retcode<>0 RETURN (1)
return (0)