sp_mergesubscription_cleanup (języka Transact-SQL)

Usuwa metadane, takie jak wyzwalaczy i wpisy w sysmergesubscriptions i sysmergearticles po scaleniu określonego subskrypcja wypychana usunięty przez wydawcę.Ta procedura składowana jest uruchamiane przez subskrybenta na baza danych subskrypcja.

Ostrzeżenie

Dla subskrypcja wciągana, metadane są usuwane po sp_dropmergepullsubscription (języka Transact-SQL) jest wykonywany.

Ikona łącza do tematuKonwencje składni Transact-SQL

Składnia

sp_mergesubscription_cleanup [ @publisher =] 'publisher'
        , [ @publisher_db =] 'publisher_db'
        , [ @publication =] 'publication'

Argumenty

  • [ @ publisher = 'publisher"
    Is the name of the Publisher.publisher is sysname, with no default.

  • [ @ publisher_db = 'publisher_db"
    Is the name of the Publisher database.publisher_db is sysname, with no default.

  • [ @ publikacja = 'publication"
    Is the name of the publication.publication is sysname, with no default.

Wartości kodów powrotnych

0 (sukces) lub 1 (błąd)

Uwagi

sp_mergesubscription_cleanup używane w replikacja scalająca.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera lub db_owner ustaloną rola bazy danych można wykonać sp_mergesubscription_cleanup.