Aracılığıyla paylaş


sp_addpullsubscription_agent (Transact-SQL)

çekme temelli abonelik iş yayınına eşitlemek için kullanılan yeni bir zamanlanmış Aracısı iş ekler.Bu saklı yordam, abonelik veritabanı abonelik sırasında yürütülür.

Topic link iconTransact-SQL sözdizimi kuralları

sp_addpullsubscription_agent [ @publisher = ] 'publisher'
    [ , [ @publisher_db = ] 'publisher_db' ]
        , [ @publication = ] 'publication'
    [ , [ @subscriber = ] 'subscriber' ]
    [ , [ @subscriber_db = ] 'subscriber_db' ]
    [ , [ @subscriber_security_mode = ] subscriber_security_mode ]
    [ , [ @subscriber_login = ] 'subscriber_login' ]
    [ , [ @subscriber_password = ] 'subscriber_password' ]
    [ , [ @distributor = ] 'distributor' ]
    [ , [ @distribution_db = ] 'distribution_db' ]
    [ , [ @distributor_security_mode = ] distributor_security_mode ]
    [ , [ @distributor_login = ] 'distributor_login' ]
    [ , [ @distributor_password = ] 'distributor_password' ]
    [ , [ @optional_command_line = ] 'optional_command_line' ]
    [ , [ @frequency_type = ] frequency_type ]
    [ , [ @frequency_interval = ] frequency_interval ]
    [ , [ @frequency_relative_interval = ] frequency_relative_interval ]
    [ , [ @frequency_recurrence_factor = ] frequency_recurrence_factor ]
    [ , [ @frequency_subda y= ] frequency_subday ]
    [ , [ @frequency_subday_interval = ] frequency_subday_interval ]
    [ , [ @active_start_time_of_day = ] active_start_time_of_day ]
    [ , [ @active_end_time_of_day = ] active_end_time_of_day ]
    [ , [ @active_start_date = ] active_start_date ]
    [ , [ @active_end_date = ] active_end_date ]
    [ , [ @distribution_jobid = ] distribution_jobid OUTPUT ]
    [ , [ @encrypted_distributor_password = ] encrypted_distributor_password ]
    [ , [ @enabled_for_syncmgr = ] 'enabled_for_syncmgr' ]
    [ , [ @ftp_address = ] 'ftp_address' ]
    [ , [ @ftp_port = ] ftp_port ]
    [ , [ @ftp_login = ] 'ftp_login' ]
    [ , [ @ftp_password = ] 'ftp_password' ]
    [ , [ @alt_snapshot_folder = ] 'alternate_snapshot_folder' ]
    [ , [ @working_directory = ] 'working_directory' ]
    [ , [ @use_ftp = ] 'use_ftp' ]
    [ , [ @publication_type = ] publication_type ]
    [ , [ @dts_package_name = ] 'dts_package_name' ]
    [ , [ @dts_package_password = ] 'dts_package_password' ]
    [ , [ @dts_package_location = ] 'dts_package_location' ]
    [ , [ @reserved = ] 'reserved' ]
    [ , [ @offloadagent = ] 'remote_agent_activation' ]
    [ , [ @offloadserver = ] 'remote_agent_server_name']
    [ , [ @job_name = ] 'job_name' ]
    [ , [ @job_login = ] 'job_login' ] 
    [ , [ @job_password = ] 'job_password' ] 

Bağımsız değişkenler

  • [ @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 a default value of NULL.publisher_db is ignored by Oracle Publishers.

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

  • [ @subscriber=] 'subscriber'
    Is the name of the Subscriber.subscriber is sysname, with a default of NULL.

    Not

    Bu parametre kalmıştır ve bu komut dosyaları geriye dönük uyumluluk için korunur.

  • [ @subscriber_db=] 'subscriber_db'
    Is the name of the subscription database.subscriber_db is sysname, with a default of NULL.

    Not

    Bu parametre kalmıştır ve bu komut dosyaları geriye dönük uyumluluk için korunur.

  • [ @subscriber_security_mode=] subscriber_security_mode
    Is the security mode to use when connecting to a Subscriber when synchronizing.subscriber_security_mode is int, with a default of NULL.0 belirtir.SQL Server Kimlik doğrulaması. 1 Windows kimlik doğrulamasını belirtir.

    Not

    Bu parametre kalmıştır ve bu komut dosyaları geriye dönük uyumluluk için korunur.Dağıtım aracı, her zaman yerel abone için Windows kimlik doğrulaması kullanarak bağlanır.Bir değer, null dışında veya 1 bu parametre için belirtilen, bir uyarı iletisi döndürülür.

  • [ @subscriber_login =] 'subscriber_login'
    Is the Subscriber login to use when connecting to a Subscriber when synchronizing.subscriber_login is sysname, with a default of NULL.

    Not

    Bu parametre kalmıştır ve bu komut dosyaları geriye dönük uyumluluk için korunur.Bu parametre için bir değer belirtilirse, bir uyarı iletisi olarak döndürüldü, ancak değeri dikkate alınmaz.

  • [ @subscriber_password=] 'subscriber_password'
    Is the Subscriber password.subscriber_password is required if subscriber_security_mode is set to 0.subscriber_password is sysname, with a default of NULL.Abone parola kullanılırsa, otomatik olarak şifrelenir.

    Not

    Bu parametre kalmıştır ve bu komut dosyaları geriye dönük uyumluluk için korunur.Bu parametre için bir değer belirtilirse, bir uyarı iletisi olarak döndürüldü, ancak değeri dikkate alınmaz.

  • [ @distributor=] 'distributor'
    Is the name of the Distributor.distributor is sysname, with a default of the value specified by publisher.

  • [ @distribution_db=] 'distribution_db'
    Is the name of the distribution database.distribution_db is sysname, with a default value of NULL.

  • [ @distributor_security_mode=] distributor_security_mode
    Is the security mode to use when connecting to a Distributor when synchronizing.distributor_security_mode is int, with a default of 1. 0 belirtir.SQL Server Kimlik doğrulaması. 1 Windows kimlik doğrulamasını belirtir.

    Security noteSecurity Note:

    When possible, use Windows Authentication.

  • [ @distributor_login=] 'distributor_login'
    Is the Distributor login to use when connecting to a Distributor when synchronizing.distributor_login is required if distributor_security_mode is set to 0.distributor_login is sysname, with a default of NULL.

  • [ @distributor_password =] 'distributor_password'
    Is the Distributor password.distributor_password is required if distributor_security_mode is set to 0.distributor_password is sysname, with a default of NULL.

    Security noteSecurity Note:

    Boş parola kullanmayın.Güçlü bir parola kullanın.Olanaklıysa, zamanında güvenlik kimlik bilgileri bilgilerini girmesini ister.kimlik bilgileri bilgilerini bir komut dosyasında depolamak, yetkisiz erişimi engellemek için dosyanın güvenli olmalıdır.

  • [ @optional_command_line=] 'optional_command_line'
    Isteğe bağlı bir komut istemi istemini dağıtım aracı için sağlanan.For example, -DefinitionFile C:\Distdef.txt or -CommitBatchSize 10.optional_command_line is nvarchar(4000), with a default of empty string.

  • [ @frequency_type=] frequency_type
    Is the frequency with which to schedule the Distribution Agent.frequency_type is int, and can be one of the following values.

    Değer

    Açıklama

    1

    saat

    2 (varsayılan)

    Isteğe bağlı

    4

    Günlük

    8

    Haftalık

    16

    Aylık

    32

    Aylık göreli

    64

    Otomatik başlatma

    128

    Yinelenen

    Not

    Değeri, belirleme 64 dağıtım aracı sürekli modunda çalışmasına neden olur.Bu ayara karşılık gelir -Sürekli aracı ile ilgili parametre.Daha fazla bilgi için bkz: Distribution Agent çoğaltma.

  • [ @frequency_interval=] frequency_interval
    Is the value to apply to the frequency set by frequency_type.frequency_interval is int, with a default of 1.

  • [ @frequency_relative_interval=] frequency_relative_interval
    Distribution Agent tarihidir.This parameter is used when frequency_type is set to 32 (monthly relative).frequency_relative_interval is int, and can be one of the following values.

    Değer

    Açıklama

    1 (varsayılan)

    First

    2

    Ikinci

    4

    Üçüncü

    8

    Dördüncü

    16

    Last

  • [ @frequency_recurrence_factor=] frequency_recurrence_factor
    Is the recurrence factor used by frequency_type.frequency_recurrence_factor is int, with a default of 1.

  • [ @frequency_subday=] frequency_subday
    Is how often to reschedule during the defined period.frequency_subday is int, and can be one of the following values.

    Değer

    Açıklama

    1 (varsayılan)

    Bir kez

    2

    Ikinci

    4

    Dakika

    8

    Saat

  • [ @frequency_subday_interval=] frequency_subday_interval
    Is the interval for frequency_subday.frequency_subday_interval is int, with a default of 1.

  • [ @active_start_time_of_day=] active_start_time_of_day
    Is the time of day when the Distribution Agent is first scheduled, formatted as HHMMSS.active_start_time_of_day is int, with a default of 0.

  • [ @active_end_time_of_day=] active_end_time_of_day
    Is the time of day when the Distribution Agent stops being scheduled, formatted as HHMMSS.active_end_time_of_day is int, with a default of 0.

  • [ @active_start_date=] active_start_date
    Is the date when the Distribution Agent is first scheduled, formatted as YYYYMMDD.active_start_date is int, with a default of 0.

  • [ @active_end_date=] active_end_date
    Is the date when the Distribution Agent stops being scheduled, formatted as YYYYMMDD.active_end_date is int, with a default of 0.

  • [ @distribution_jobid =] distribution_jobidOUTPUT
    Is the ID of the Distribution Agent for this job.distribution_jobid is binary(16), with a default of NULL, and it is an OUTPUT parameter.

  • [ @encrypted_distributor_password=] encrypted_distributor_password
    Ayarı encrypted_distributor_password artık desteklenmiyor. Bu küme girişimi bit parametre 1 hatayla sonuçlanır.

  • [ @enabled_for_syncmgr=] 'enabled_for_syncmgr'
    Is whether the subscription can be synchronized through Microsoft Synchronization Manager.enabled_for_syncmgr is nvarchar(5), with a default of FALSE.If false, Eşitleme Yöneticisi ile abonelik kayıtlı değil. If true, aboneliğin Eşitleme Yöneticisi ile kaydedilir ve başlatmadan eşitlenebilir SQL Server Management Studio.

  • [ @ftp_address=] 'ftp_address'
    Yalnızca geriye dönük uyumluluk için.

  • [ @ftp_port=] ftp_port
    Yalnızca geriye dönük uyumluluk için.

  • [ @ftp_login=] 'ftp_login'
    Yalnızca geriye dönük uyumluluk için.

  • [ @ftp_password=] 'ftp_password'
    Yalnızca geriye dönük uyumluluk için.

  • [ @alt_snapshot_folder= ] **'**alternate_snapshot_folder'
    Specifies the location of the alternate folder for the snapshot.alternate_snapshot_folder is nvarchar(255), with a default of NULL.

  • [ @ working_directory= ] 'working_director'
    Is the name of the working directory used to store data and schema files for the publication.working_directory is nvarchar(255), with a default of NULL.Ad, UNC biçiminde belirtilmelidir.

  • [ @ use_ftp= ] 'use_ftp'
    Specifies the use of FTP instead of the regular protocol to retrieve snapshots.use_ftp is nvarchar(5), with a default of FALSE.

  • [ @ publication_type = ] publication_type
    Specifies the replication type of the publication.publication_type is a tinyint with a default of 0.If 0, yayın bir hareket tipidir.If 1, yayın bir anlık görüntü türüdür.If 2yayın birleştirme türüdür.

  • [ @ dts_package_name= ] 'dts_package_name'
    Specifies the name of the DTS package.dts_package_name is a sysname with a default of NULL.Örneğin, paket belirtmek için DTSPub_Package, parametre olabilir @dts\_package\_name = N'DTSPub_Package'.

  • [ @ dts_package_password= ] 'dts_package_password'
    Specifies the password on the package, if there is one.dts_package_password is sysname with a default of NULL, which means a password is not on the package.

    Not

    Varsa bir parola belirtmelisiniz dts_package_name belirtildi.

  • [ @ dts_package_location= ] 'dts_package_location'
    Specifies the package location.dts_package_location is a nvarchar(12), with a default of subscriber.Paket konumu olabilir dağıtımcı or abone.

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

  • [ @ offloadagent= ] 'remote_agent_activation'

    Not

    Uzaktaki Aracı etkinleştirme onaylanmaz ve artık desteklenmiyor.Bu parametre, yalnızca geriye dönük uyumluluk komut dosyaları korumak için desteklenir.Ayarı remote_agent_activation dışında bir değer false bir hata üretecektir.

  • [ @ offloadserver= ] 'remote_agent_server_name'

    Not

    Uzaktaki Aracı etkinleştirme onaylanmaz ve artık desteklenmiyor.Bu parametre, yalnızca geriye dönük uyumluluk komut dosyaları korumak için desteklenir.Ayarı remote_agent_server_name DEĞERSIZ olmayan herhangi bir değer için bir hata üretecektir.

  • [ @ job_name= ] 'job_name'
    Is the name of an existing agent job.job_name is sysname, with a default value of NULL.Bu parametre, yalnızca yeni oluşturulan iş (varsayılan) yerine varolan bir işi'ni kullanarak, aboneliğin eşitlenir, belirtilmedi.Üyesi değilseniz, sysadmin sabit sunucu rolü, belirtmelisinizjob_login ve job_password belirttiğiniz zaman job_name.

  • [ @ job_login= ] 'job_login'
    Is the login for the Windows account under which the agent runs.job_login is nvarchar(257), with no default.Bu Windows hesabını, her zaman abone Aracısı bağlantılarda kullanılır.

  • [ @ job_password= ] 'job_password'
    Is the password for the Windows account under which the agent runs.job_password is sysname, with no default.

    Security noteSecurity Note:

    Olanaklıysa, zamanında güvenlik kimlik bilgileri bilgilerini girmesini ister.kimlik bilgileri bilgilerini bir komut dosyasında depolamak, yetkisiz erişimi engellemek için dosyanın güvenli olmalıdır.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Remarks

sp_addpullsubscription_agent işlem çoğaltma anlık görüntü çoğaltması çoğaltması de kullanılır.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü için yürütmek sp_addpullsubscription_agent.