Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSget_subscriber_partition_id

  No additional text.


Syntax

create procedure sys.sp_MSget_subscriber_partition_id (@publication sysname, @partition_id int OUTPUT, @maxgen_whenadded bigint OUTPUT, @host_name_override sysname = NULL, @suser_sname_override sysname = NULL)
as
begin
    set nocount on

    declare @partition_id_eval_proc nvarchar(270), @retcode int

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

    select @partition_id_eval_proc = partition_id_eval_proc from dbo.sysmergepublications
    where name = @publication and UPPER(publisher)=UPPER(publishingservername()) and publisher_db=db_name()

    if @partition_id_eval_proc is not null
    begin
        select @partition_id_eval_proc = 'dbo.' + @partition_id_eval_proc

        exec @retcode = @partition_id_eval_proc @partition_id OUTPUT,
                                                @maxgen_whenadded OUTPUT,
                                                @host_name_override,
                                                @suser_sname_override

        if @retcode <> 0 or @@error <> 0
            return 1
    end

    return 0
end

 
Last revision 2008RTM
See also

  sp_addmergepartition (Procedure)
sp_dropmergepartition (Procedure)
sp_MSaddmergedynamicsnapshotjob (Procedure)
sp_MScreatemergedynamicsnapshot (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_MSget_current_subscriber_partition_id (Procedure)
sp_MSmakedynsnapshotvws (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