Aracılığıyla paylaş


sp_dropmergepullsubscription (Transact-SQL)

Birleştirme istek temelli abonelik bırakır.Bu saklı yordam, abonelik veritabanı abone adresindeki yürütülür.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

sp_dropmergepullsubscription [ @publication= ] 'publication' 
        , [ @publisher= ] 'publisher' 
        , [ @publisher_db= ] 'publisher_db' 
    [ , [ @reserved= ] 'reserved' ]

Bağımsız değişkenler

  • [ @publication=] 'publication'
    Is the name of the publication.publication is sysname, with a default of NULL.Bu parametre gereklidir.Bir değer belirtmek tüm tüm yayınlar için aboneliklerini kaldırmak için

  • [ @publisher=] 'publisher'
    Is the name of the Publisher.publisheris sysname, with a default of NULL.Bu parametre gereklidir.

  • [ @publisher_db=] 'publisher_db'
    Is the name of the Publisher database.publisher_dbis sysname, with a default of NULL.Bu parametre gereklidir.

  • [ @reserved=] 'reserved'
    Is reserved for future use.reserved is bit, with a default of 0.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Açıklamalar

sp_dropmergepullsubscription birleştirmede kullanılan çoğaltma.

sp_dropmergepullsubscription bu birleştirme istek temelli abonelik için Birleştirme Aracısı Birleştirme Aracısı içinde oluşturulan rağmen düşünceye sp_addmergepullsubscription.

Örnek

-- This script uses sqlcmd scripting variables. They are in the form
-- $(MyVariable). For information about how to use scripting variables  
-- on the command line and in SQL Server Management Studio, see the 
-- "Executing Replication Scripts" section in the topic
-- "Programming Replication Using System Stored Procedures".

-- This batch is executed at the Subscriber to remove 
-- a merge pull subscription.
DECLARE @publication AS sysname;
DECLARE @publisher AS sysname;
DECLARE @publication_db AS sysname;
SET @publication = N'AdvWorksSalesOrdersMerge';
SET @publisher = $(PubServer);
SET @publication_db = N'AdventureWorks2008R2';

USE [AdventureWorks2008R2Replica]
EXEC sp_dropmergepullsubscription 
  @publisher = @publisher, 
  @publisher_db = @publication_db, 
  @publication = @publication;
GO

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya birleştirme istek temelli abonelik oluşturan kullanıcının yürütmek sp_dropmergepullsubscription.The db_owner fixed database role is only able to execute sp_dropmergepullsubscription if the user that created the merge pull subscription belongs to this role.