Aracılığıyla paylaş


sp_addsubscriber_schedule (Transact-SQL)

Dağıtım Aracısı ve Birleştirme Aracısı için bir plan ekler.Bu saklı yordam, herhangi bir veritabanı üzerinde yayımcı adresindeki yürütülür.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

sp_addsubscriber_schedule [ @subscriber = ] 'subscriber'
    [ , [ @agent_type = ] agent_type ]
    [ , [ @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 ]
    [ , [ @publisher = ] 'publisher' ]

Bağımsız değişkenler

  • [ @subscriber = ] 'subscriber'
    Is the name of the Subscriber.subscriber is sysname.Abonenin adını veritabanı içinde benzersiz olmalıdır, önceden mevcut olmalıdır ve boş olamaz.

  • [ @agent_type = ] agent_type
    Is the type of agent.agent_type is smallint, and can be one of these values.

    Değer

    Açıklama

    0 (varsayılan)

    Dağıtım Aracısı

    1

    Birleştirme Aracısı

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

    Değer

    Açıklama

    1

    Birisaat

    2

    İsteğe bağlı

    4

    Günlük

    8

    Haftalık

    16

    Aylık

    32

    Aylık göreli

    64 (varsayılan)

    Otomatik başlatma

    128

    Yinelenen

  • [ @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
    Olan tarih Dağıtım Aracısı.This parameter is used when frequency_type is set to 32 (monthly relative).frequency_relative_interval is int, and can be one of these values.

    Değer

    Açıklama

    1 (varsayılan)

    First

    2

    İkinci

    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 0.

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

    Değer

    Açıklama

    1

    Bir kez

    2

    İkinci

    4 (varsayılan)

    Dakika

    8

    Saat

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

  • [ @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_dayis int, with a default of 235959, which means 11:59:59 P.M.as measured on a 24-hour clock.

  • [ @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 99991231, which means December 31, 9999.

  • [ @publisher = ] 'publisher'
    Specifies a non-Microsoft SQL Server Publisher.publisher is sysname, with a default of NULL.

    Not

    publisheriçin belirtilmemiş bir SQL Server Yayımcı.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Açıklamalar

sp_addsubscriber_schedule anlık görüntü çoğaltması çoğaltması çoğaltma, işlem çoğaltma ve birleştirme çoğaltması kullanılır.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü olabilir yürütmek sp_addsubscriber_schedule.