sp_dropmergepullsubscription (języka Transact-SQL)
Krople scalania subskrypcja wciągana.Ta procedura składowana jest wykonywany przez subskrybenta na baza danych subskrypcja.
Składnia
sp_dropmergepullsubscription [ @publication= ] 'publication'
, [ @publisher= ] 'publisher'
, [ @publisher_db= ] 'publisher_db'
[ , [ @reserved= ] 'reserved' ]
Argumenty
[ @ publikacja = 'publication"
Is the name of the publication.publication is sysname, with a default of NULL.Ten parametr jest wymagany.Określ wartość wszystkich usunąć subskrypcję wszystkie publikacje[ @ publisher = 'publisher"
Is the name of the Publisher.publisheris sysname, with a default of NULL.Ten parametr jest wymagany.[ @ publisher_db = 'publisher_db"
Is the name of the Publisher database.publisher_dbis sysname, with a default of NULL.Ten parametr jest wymagany.[ @ zarezerwowane = 'reserved"
Is reserved for future use.reserved is bit, with a default of 0.
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_dropmergepullsubscription używane w replikacja scalająca.
sp_dropmergepullsubscription spadnie agenta scalania dla tego scalenia subskrypcja wciągana, chociaż agenta korespondencji seryjnej nie jest tworzony w sp_addmergepullsubscription.
Przykład
-- 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
Uprawnienia
Tylko członkowie sysadmin ustalonego roli serwera lub użytkownika, który utworzył scalania subskrypcja wciągana można wykonać sp_dropmergepullsubscription.Db_owner ustaloną rola bazy danych jest tylko możliwe wykonywanie sp_dropmergepullsubscription Jeśli użytkownik który utworzył scalania subskrypcja wciągana należy do tej roli.
Zobacz także