Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSmap_partitionid_to_generations

  No additional text.


Syntax
create procedure sys.sp_MSmap_partitionid_to_generations @partition_id int
as

    declare @retcode smallint

    exec @retcode = sys.sp_MSrepl_PAL_rolecheck
    if (@retcode <> 0) or (@@error <> 0)
        return 1

    if exists (select * from dbo.MSmerge_contents)
    begin
        insert into dbo.MSmerge_generation_partition_mappings (publication_number, partition_id,
                    generation, changecount)
            select cpm.publication_number, cpm.partition_id, mc.generation, count(*)
            from dbo.MSmerge_current_partition_mappings cpm join dbo.MSmerge_contents mc
            on mc.tablenick = cpm.tablenick
            and mc.rowguid = cpm.rowguid
            and cpm.partition_id = @partition_id
            group by cpm.publication_number, cpm.partition_id, mc.generation
    end

    insert into dbo.MSmerge_generation_partition_mappings (publication_number, partition_id,
                    generation, changecount)
            select ppm.publication_number, ppm.partition_id, ppm.generation, count(*)
            from dbo.MSmerge_past_partition_mappings ppm
            where ppm.partition_id = @partition_id
            group by ppm.publication_number, ppm.partition_id, ppm.generation

    return 0

 
Last revision 2008RTM
See also

  sp_MSdrop_rlrecon (Procedure)
sp_MSget_partitionid_eval_proc (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