Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSevaluate_change_membership_for_row

  No additional text.


Syntax
create procedure sys.sp_MSevaluate_change_membership_for_row (@tablenick int, @rowguid uniqueidentifier = NULL, @marker uniqueidentifier = NULL) as
begin
    declare @membership_eval_proc_name nvarchar(130), @retcode int

    exec @retcode = sys.sp_MSrepl_PAL_rolecheck @tablenick=@tablenick
    if @retcode<>0 or @@ERROR<>0
        return 1

    -- get the ArticleChangeMembershipEvaluation proc for this article in all publications.
    declare membership_eval_proc_names CURSOR LOCAL FAST_FORWARD FOR select membership_eval_proc_name
    from dbo.sysmergepartitioninfoview
    where nickname = @tablenick and membership_eval_proc_name is not null and membership_eval_proc_name <> ' '
    FOR READ ONLY

    open membership_eval_proc_names

    fetch next from membership_eval_proc_names into @membership_eval_proc_name

    while (@@fetch_status <> -1)
    begin
        select @membership_eval_proc_name = 'dbo.' + @membership_eval_proc_name

        if @rowguid is not null
        begin
			exec @retcode = @membership_eval_proc_name @rowguid = @rowguid
			if @@error <> 0 or @retcode <> 0
				goto Error
		end
		else if @marker is not null
		begin
			exec @retcode = @membership_eval_proc_name @marker = @marker
			if @@error <> 0 or @retcode <> 0
				goto Error
		end
		else
		begin
			exec @retcode = @membership_eval_proc_name
			if @@error <> 0 or @retcode <> 0
				goto Error
		end

        fetch next from membership_eval_proc_names into @membership_eval_proc_name
    end

    close membership_eval_proc_names
    deallocate membership_eval_proc_names

    return 0

Error:
    close membership_eval_proc_names
    deallocate membership_eval_proc_names

    return 1
end

 
Last revision 2008RTM
See also

  sp_addtabletocontents (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_MSdummyupdate (Procedure)
sp_MSdummyupdate90 (Procedure)
sp_MSevaluate_logicalrecordparent (Procedure)
sp_MSmakeselectproc (Procedure)
sp_MSsetrowmetadata (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash