sp_changepublication_snapshot (Transact-SQL)
Belirtilen yayın için Anlık Görüntü Aracısı özelliklerini değiştirir.Bu saklı yordam, yayın veritabanı üzerinde yayımcı adresindeki yürütülür.
Güvenlik Notu |
---|
Yayımcı ile yapılandırırken bir uzak Dağıtımcı, sağlanan da dahil olmak üzere tüm parametreler için değerler job_login ve job_password, için dağıtıcı düz metin olarak gönderilirBu saklı yordam yürütmeden önce Yayımcı ve kendi uzak dağıtımcı arasında bağlantı şifrelemek.Daha fazla bilgi için bkz: SQL Server bağlantıları şifreleme. |
Sözdizimi
sp_changepublication_snapshot [ @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 = ] 'publisher' ]
Bağımsız değişkenler
[ @publication =] 'publication'
Is the name of the publication.publication is sysname, with no default.[ @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
Specifies 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 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
İ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
Is the date the Snapshot Agent runs.frequency_relative_interval is int, with a default of NULL.[ @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 Snapshot 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 Snapshot 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 Snapshot 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 Snapshot Agent stops being scheduled, formatted as HHMMSS.active_end_time_of_day is int, with a default of NULL.[ @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 a default value of NULL.[ @publisher_security_mode = ] publisher_security_mode
Is the security mode used by the agent when connecting to the Publisher.publisher_security_mode is smallint, with a default of NULL.0 belirtir SQL Server , kimlik doğrulama ve 1 Windows kimlik doğrulamasının kullanılacağını belirtir.Değeri, 0 için mutlaka belirtilmeli olmayan-SQL Server Publishers.Güvenlik Notu Mümkünse Windows Kimlik Doğrulaması kullanın.
[ @publisher_login = ] 'publisher_login'
Is the login used when connecting to the Publisher.publisher_login is sysname, with a default of NULL.publisher_login must be specified when publisher_security_mode is 0.If publisher_login is NULL and publisher_security_mode is 1, then the Windows account specified in job_login is used when connecting to the Publisher.[ @publisher_password = ] 'publisher_password'
Is the password used when connecting to the Publisher.publisher_password is sysname, with a default of NULL.Güvenlik Notu Boş parola kullanmayın.Güçlü bir parola kullanın.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.
[ @ job_login=] 'job_login'
Is the login for the Windows account under which the agent runs.job_login is nvarchar(257), with a default of NULL.Bu Windows hesabı her zaman Aracısı bağlantıları dağıtımcı için kullanılır.Yeni bir anlık görüntü Aracısı iş oluştururken, bu parametreyi sağlamanız gerekir.Bu olmayan bir değiştirilemez-SQL Server publisher.[ @job_password = ] 'job_password'
Is the password for the Windows account under which the agent runs.job_password is sysname, with a default of NULL.Yeni bir anlık görüntü Aracısı iş oluştururken, bu parametreyi sağlamanız gerekir.Gü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.
[ @publisher = ] 'publisher'
Specifies a non-SQL Server publisher.publisher is sysname, with a default of NULL.Not
publisherbir anlık görüntü Aracısı adresindeki oluşturulurken kullanılan değil bir SQL Server Yayımcı.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (başarısız)
Açıklamalar
sp_changepublication_snapshot 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ü veya db_owner sabit veritabanı rolü olabilir yürütmek sp_changepublication_snapshot.