sp_addqueued_artinfo (języka Transact-SQL)

Ważna informacjaWażne:

The sp_script_synctran_commands procedure should be used instead of sp_addqueued_artinfo.sp_script_synctran_commands generates a script that contains the sp_addqueued_artinfo and sp_addsynctrigger calls.

Tworzy MSsubscription_articles tabela przez subskrybenta, który służy do śledzenia informacji o subskrypcja artykuł (w kolejce aktualizowanie i natychmiastowej aktualizacji z aktualizacją w kolejce jako praca awaryjna).Ta procedura składowana jest wykonywany przez subskrybenta na baza danych subskrypcja.

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

Składnia

sp_addqueued_artinfo [ @artid= ] 'artid'
        , [ @article= ] 'article'
        , [ @publisher = ] 'publisher'
        , [ @publisher_db = ] 'publisher_db'
        , [ @publication = ] 'publication'
        , [ @dest_table= ] 'dest_table'
        , [ @owner = ] 'owner'
        , [ @cft_table= ] 'cft_table'

Argumenty

  • [ @ artid = 'artid"
    Is the name of the article ID.artid is int, with no default

  • [ @ artykuł = 'article"
    Is the name of the article to be scripted.article is sysname, with no default

  • [ @ publisher = 'publisher"
    Is the name of the Publisher server.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 to be scripted.publication is sysname, with no default.

  • [ @ dest_table = 'dest_table**'**
    Is the name of the destination table.dest_table is sysname, with no default.

  • [@ właściciela = 'owner"
    Is the owner of the subscription.owner is sysname, with no default.

  • [ @ cft_table = 'cft_table"
    Name of the queued updating conflict table for this article.cft_tableis sysname, with no default.

Wartości kodów powrotnych

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

Uwagi

sp_addqueued_artinfo jest używana przez agenta dystrybucji jako część inicjowania subskrypcja.Ta procedura składowana nie jest często uruchamiane przez użytkowników, ale może być przydatne, jeśli użytkownik musi ręcznie zestaw w górę subskrypcja.

In Microsoft SQL Server 2000, sp_addqueued_artinfo supported @columns, a required parameter.This parameter is no longer supported.sp_script_synctran_commands instead of sp_addqueued_artinfo.

Uprawnienia

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