Aracılığıyla paylaş


sp_changedynamicsnapshot_job (Transact-SQL)

İçin bir anlık görüntü oluşturur Aracısı işi değiştiren bir abonelik bir yayın parametreli satır filtresi ile için.Bu saklı yordam, yayın veritabanı üzerinde yayımcı adresindeki yürütülür.

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

Sözdizimi

sp_changedynamicsnapshot_job [ @publication = ] 'publication'
    [ , [ @dynamic_snapshot_jobname = ] 'dynamic_snapshot_jobname' ]
    [ , [ @dynamic_snapshot_jobid = ] 'dynamic_snapshot_jobid' ]
    [ , [ @frequency_type = ] frequency_type ] 
    [ , [ @frequency_interval = ] frequency_interval ] 
    [ , [ @frequency_subday = ] frequency_subday ] 
    [ , [ @frequency_subday_interval = ] frequency_subday_interval ] 
    [ , [ @frequency_relative_interval = ] frequency_relative_interval ] 
    [ , [ @frequency_recurrence_factor = ] frequency_recurrence_factor ] 
    [ , [ @active_start_date = ] active_start_date ] 
    [ , [ @active_end_date = ] active_end_date ] 
    [ , [ @active_start_time_of_day = ] active_start_time_of_day ] 
    [ , [ @active_end_time_of_day = ] active_end_time_of_day ] 
    [ , [ @job_login = ] 'job_login' ] 
    [ , [ @job_password = ] 'job_password' ] 

Bağımsız değişkenler

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

  • [ @dynamic_snapshot_jobname = ] 'dynamic_snapshot_jobname'
    Is the name of the snapshot job being changed.dynamic_snapshot_jobnameis sysname, with default value of N'%'.If dynamic_snapshot_jobid is specified, you must use the default value for dynamic_snapshot_jobname.

  • [ @dynamic_snapshot_jobid = ] 'dynamic_snapshot_jobid'
    Is the ID of the snapshot job being changed.dynamic_snapshot_jobid is uniqueidentifier, with default value of NULL.If dynamic_snapshot_jobnameis specified, you must use the default value for dynamic_snapshot_jobid.

  • [ @frequency_type = ] frequency_type
    Is the frequency with which to schedule the agent.frequency_type is int, and can be one of the following 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

    Otomatik başlatma

    128

    Yinelenen

    Null(default)

     

  • [ @frequency_interval = ] frequency_interval
    The days that the 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

    Hafta içi

    10

    Hafta sonu gün

    Null(default)

     

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

    İkinci

    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.

  • [ @frequency_relative_interval = ] frequency_relative_interval
    Olan tarih , Birleştirme Aracısı çalıştırır.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

    İkinci

    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.

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

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

  • [ @job_login= ] 'job_login'
    Is the Microsoft Windows Account under which the Snapshot Agent runs when generating the snapshot for a subscription using a parameterized row filter.job_login is nvarchar(257), with a default value of NULL.

  • [ @job_password= ] 'job_password'
    Is the password for the Windows Account under which the Snapshot Agent runs when generating the snapshot for a subscription using a parameterized row filter.job_password is nvarchar(257), with a default value of NULL.

    Güvenlik notuGüvenlik Notu

    Mümkün olduğunda, zamanında güvenlik kimlik bilgileri bilgilerini girmesini ister.Bir komut dosyasında kimlik bilgileri bilgilerini depolamak, yetkisiz erişimi önlemek için dosyayı güvenli gerekir.

Dönüş Kodu Değerleri

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

Açıklamalar

sp_changedynamicsnapshot_job birleştirmede kullanılan çoğaltma parametreli satır filtre ile yayınlar için.

Bir Aracısı oturum açma veya parola değiştirdikten sonra durdurmak ve değişikliğin etkili olabilmesi için aracı yeniden gerekir.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü olabilir yürütmek sp_changedynamicsnapshot_job.