Aracılığıyla paylaş


sp_MSchange_snapshot_agent_properties (Transact-SQL)

Changes the properties of a Snapshot Agent job that runs at a Microsoft SQL Server 2005 or later version Distributor.This stored procedure is used to change properties when the Publisher runs on an instance of Microsoft SQL Server 2000.Bu saklı yordam dağıtımcı dağıtım veritabanı üzerinde sırasında yürütülür.

Topic link iconTransact-SQL sözdizimi kuralları

sp_MSchange_snapshot_agent_properties [ @publisher = ] 'publisher'
        , [ @publisher_db = ] 'publisher_db'
        , [ @publication = ] 'publication' 
        , [ @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
        , [ @snapshot_job_name = ] 'snapshot_agent_name'
        , [ @publisher_security_mode = ] publisher_security_mode
        , [ @publisher_login = ] 'publisher_login'
        , [ @publisher_password = ] 'publisher_password' 
        , [ @job_login = ] 'job_login'
        , [ @job_password = ] 'job_password'
        , [ @publisher_type = ] 'publisher_type'

Bağımsız değişkenler

  • [ Yayımcı'ın = ] 'publisher'
    Is the name of the Publisher.publisher is sysname, with no default.

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

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

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

    Değer

    Açıklama

    1

    Bir kez

    2

    Isteğe bağlı

    4

    Günlük

    8

    Haftalık

    10

    Aylık

    20

    Aylık bağlantılıdır, frekans aralığı

    40

    Ne zaman SQL Server Aracı'nı başlatır

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

  • [ @frequency_subday = ] frequency_subday
    Is the units for freq_subday_interval.frequency_subday is int, and can be one of these values.

    Değer

    Açıklama

    1

    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 no default.

  • [ @frequency_relative_interval = ] frequency_relative_interval
    Is the date the Snapshot Agent runs.frequency_relative_interval is int, with no default.

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

  • [ @active_start_date = ] active_start_date
    Is the date when the Snapshot Agent is first scheduled, formatted as YYYYMMDD.active_start_date is int, with no default.

  • [ @active_end_date = ] active_end_date
    Is the date when the Snapshot Agent stops being scheduled, formatted as YYYYMMDD.active_end_date is int, with no default.

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

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

  • [ @snapshot_job_name = ] 'snapshot_agent_name'
    Is the name of an existing Snapshot Agent job name if an existing job is being used.snapshot_agent_name is nvarchar(100), with no default.

  • [ @ publisher_security_mode= ] publisher_security_mode
    Is the security mode used by the agent when connecting to the Publisher.publisher_security_mode is int, with no default.0 belirtir.SQL Server Kimlik doğrulaması ve 1 Windows kimlik doğrulamasını belirtir.Değeri 0 için mutlaka belirtilmeli olmayan-SQL Server Yayımcılar. When possible, use Windows Authentication.

  • [ @ publisher_login= ] 'publisher_login'
    Is the login used when connecting to the Publisher.publisher_login is sysname, with no default.publisher_login must be specified when publisher_security_mode is 0.If publisher_login NULL ve yayımcı*_*security_mode is 1ve ardından içinde belirtilen Windows hesabıjob_login Yayımcıya bağlanırken kullanılacak.

  • [ @ publisher_password= ] 'publisher_password'
    Is the password used when connecting to the Publisher.publisher_password is nvarchar(524), with no default.

    Security noteSecurity Note:

    kimlik doğrulaması bilgileri, komut dosyalarında depolamayın.Güvenliğini artırmanıza yardımcı olmak için , çalıştırma sırasında oturum açma adlarını ve parolaları sağlamanızı öneririz.

  • [ @ 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 dağıtımcı Aracısı bağlantılarda kullanılır.Yeni bir anlık görüntü Aracısı iş oluştururken bu parametreyi sağlamanız gerekir.Bu bir olmayan değiştirilemez-SQL Server Yayımcı.

  • [ @ job_password= ] 'job_password'
    Is the password for the Windows account under which the agent runs.job_password is sysname, with no default.Yeni bir anlık görüntü Aracısı iş oluştururken bu parametreyi sağlamanız gerekir.

    Security noteSecurity Note:

    kimlik doğrulaması bilgileri, komut dosyalarında depolamayın.Güvenliğini artırmanıza yardımcı olmak için , çalıştırma sırasında oturum açma adlarını ve parolaları sağlamanızı öneririz.

  • [ @ publisher_type= ] 'publisher_type'
    Specifies the Publisher type when the Publisher is not running in an instance of SQL Server.publisher_type is sysname, and can be one of the following values.

    Değer

    Açıklama

    mssqlserver

    Belirtir bir SQL Server Yayımcı.

    oracle

    Standart bir Oracle Yayımcı belirtir.

    oracle AĞ GEÇİDİ

    Bir Oracle Gateway Yayımcı belirtir.

    Bir Oracle Yayımcı bir Oracle Gateway Yayımcı arasındaki farklar hakkında daha fazla bilgi için bkz: Oracle genel yayımlama.

Dönüş Kodu Değerleri

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

Remarks

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

Tüm parametreleri yürütürken belirtmeniz gerekir sp_MSchange_snapshot_agent_properties.yürütmek sp_helppublication_snapshot anlık görüntü Aracısı'nın geçerli özellikleri geri dönmek için iş.

Ne zaman yayımcı örneğinde çalışır. SQL Server 2005 veya sonraki bir sürüm kullanmanız gerekir sp_changepublication_snapshot bir anlık görüntü Aracısı işleme özelliklerini değiştirmek için.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü adresindeki dağıtımcı olabilir yürütmek sp_MSchange_snapshot_agent_properties.