Aracılığıyla paylaş


sp_addmergepushsubscription_agent (Transact-SQL)

gönderme temelli abonelik birleştirme yayınına eşitlenmesi çizelgelemek için kullanılan yeni bir aracı iş ekler.Bu saklı yordam, yayın Veritabanı yayımcısına sırasında yürütülür.

Security noteSecurity Note:

Yayımcı, uzak Dağıtımcı, tüm parametreleri için sağlanan değerler ile yapılandırılırken dahil job_login ve job_password, dağıtıcı düz metin olarak gönderilir. Bu saklı yordamını çalıştırmadan önce yayımcısına uzak Dağıtımcı arasındaki bağlantı şifreleme.Daha fazla bilgi için bkz: SQL Server bağlantıları için şifreleme.

Topic link iconTransact-SQL sözdizimi kuralları

sp_addmergepushsubscription_agent [ @publication =] 'publication' 
    [ , [ @subscriber = ] 'subscriber' ] 
    [ , [ @subscriber_db = ] 'subscriber_db' ] 
    [ , [ @subscriber_security_mode = ] subscriber_security_mode ] 
    [ , [ @subscriber_login = ] 'subscriber_login' ] 
    [ , [ @subscriber_password = ] 'subscriber_password' ] 
    [ , [ @publisher_security_mode = ] publisher_security_mode ] 
    [ , [ @publisher_login = ] 'publisher_login' ] 
    [ , [ @publisher_password = ] 'publisher_password' ] 
    [ , [ @job_login = ] 'job_login' ] 
    [ , [ @job_password = ] 'job_password' ] 
    [ , [ @job_name = ] 'job_name' ] 
    [ , [ @frequency_type = ] frequency_type ] 
    [ , [ @frequency_interval = ] frequency_interval ] 
    [ , [ @frequency_relative_interval = ] frequency_relative_interval ] 
    [ , [ @frequency_recurrence_factor = ] frequency_recurrence_factor ] 
    [ , [ @frequency_subday = ] 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 ] 
    [ , [ @enabled_for_syncmgr = ] 'enabled_for_syncmgr' ] 

Bağımsız değişkenler

  • [ @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.

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

  • [ @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 1.If 0 belirtir.SQL Server Kimlik doğrulaması. If 1, Windows kimlik doğrulamasını belirtir.

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

  • [ @subscriber_password = ] 'subscriber_password'
    Is the Subscriber password for SQL Server Authentication.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.

    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.

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

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

  • [ @publisher_password = ] 'publisher_password'
    Is the password used when connecting to the Publisher.publisher_password is sysname, with a default of NULL.

    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.

  • [ @job_login = ] 'job_login'
    Is the login for the Windows account under which the agent runs.job_login is nvarchar(257), with a default value of NULL.Bu Windows hesabı her zaman dağıtımcı Aracısı bağlantılarda ve bağlantı bir abone ve Yayımcı için tümleşik Windows kimlik doğrulaması kullanıldığında 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.

  • [ @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 abonelik eşitlendiğinde belirtilir.Üyesi değilseniz, sysadmin sabit sunucu rolü, belirtmelisinizjob_login ve job_password belirttiğiniz zaman job_name.

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

    Değer

    Açıklama

    1

    saat

    2

    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

    NULL(default)

     

    Not

    Değeri, belirleme 64 sürekli modunda çalışacak şekilde birleştirme aracı neden olur.Bu ayara karşılık gelir -Sürekli aracı ile ilgili parametre.Daha fazla bilgi için bkz: Birleştirme Aracısı çoğaltması.

  • [ @frequency_interval = ] frequency_interval
    The days that the Merge Agent runs.frequency_interval is int, and can be one of the following values.

    Değer

    Açıklama

    1

    Pazar

    2

    Pazartesi

    3

    Salı

    4

    Çarşamba

    5

    Perşembe

    6

    Cuma

    7

    Cumartesi

    8

    Günü

    9

    Haftanın günleri

    10

    Hafta sonu günler

    NULL(default)

     

  • [ @frequency_relative_interval = ] frequency_relative_interval
    Birleştirme Aracısı 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

    First

    2

    Ikinci

    4

    Üçüncü

    8

    Dördüncü

    16

    Last

    NULL(default)

     

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

  • [ @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

    Bir kez

    2

    Ikinci

    4

    Dakika

    8

    Saat

    NULL(default)

     

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

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

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

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

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

  • [ @enabled_for_syncmgr = ] 'enabled_for_syncmgr'
    Specifies if the subscription can be synchronized through Windows 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.

Dönüş Kodu Değerleri

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

Remarks

sp_addmergepushsubscription_agent kullanılan birleştirme çoğaltma ve için benzer işlevleri kullanır.sp_addpushsubscription_agent.

İzinler

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