sp_dropsubscription (Transact-SQL)

Krople subskrypcji do określonego artykuł, publikacja lub zbiór subskrypcji sieci Wydawca.Ta procedura przechowywana jest wykonywana przez wydawcę na baza danych publikacja.

Topic link iconKonwencje składni języka Transact-SQL

sp_dropsubscription [ [ @publication= ] 'publication' ]
    [ , [ @article= ] 'article' ]
        , [ @subscriber= ] 'subscriber'
    [ , [ @destination_db= ] 'destination_db' ]
    [ , [ @ignore_distributor = ] ignore_distributor ]
    [ , [ @reserved= ] 'reserved' ]

Argumenty

  • [ @publication= ] 'publication'
    Is the name of the associated publication.publication is sysname, with a default of NULL.If all, all subscriptions for all publications for the specified Subscriber are canceled.publication is a required parameter.

  • [ @article= ] 'article'
    Is the name of the article.article is sysname, with a default value of NULL.Jeśli wszystkie, subskrypcji, aby wszystkie artykuły dla każdego określonego publikacja i subskrybent są odrzucane.Użycie wszystkie publikacji, które umożliwiają natychmiastowe aktualizowanie.

  • [ @subscriber= ] 'subscriber'
    Is the name of the Subscriber that will have its subscriptions dropped.subscriber is sysname, with no default.Jeśli wszystkie, wszystkie subskrypcje do wszystkich subskrybentów są odrzucane.

  • [ @destination_db= ] 'destination_db'
    Is the name of the destination database.destination_db is sysname, with a default of NULL.Jeśli wartością tą jest NULL, są usuwane wszystkie subskrypcje z tym subskrybent.

  • [ @ignore_distributor = ] ignore_distributor
    Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

  • [ @reserved= ] 'reserved'
    Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

Wartości kodów powrotnych

0 (sukces) lub 1 (brak)

Remarks

sp_dropsubscription jest używany w migawka i replikacja transakcyjnej.

Jeśli upuścisz subskrypcja na artykuł w publikacja natychmiastowej synchronizacji, nie można dodać go ponownie, jeśli upuść subskrypcja na wszystkie artykuły w publikacja i dodać je ponownie wszystkie (naraz.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera db_owner ustalić rola bazy danych lub użytkownika, który utworzył subskrypcja mogą wykonywać sp_dropsubscription.