sp_add_agent_profile (Transact-SQL)
Çoğaltma aracısı için yeni bir profil oluşturur.Bu saklı yordam, herhangi bir veritabanı üzerinde dağıtımcı adresindeki yürütülür.
Sözdizimi
sp_add_agent_profile [ [ @profile_id= ] profile_id OUTPUT ]
, [ @profile_name= ] 'profile_name'
, [ @agent_type= ] 'agent_type' ]
[ , [ @profile_type= ] profile_type ]
[ , [ @description= ] 'description' ]
[ , [ @default= ] default ]
Bağımsız değişkenler
[ @profile_id= ] profile_id
Is the ID associated with the newly inserted profile.profile_id is int and is an optional OUTPUT parameter.Değer belirtilmişse, küme yeni profil kimliği.[ @profile_name= ] 'profile_name'
Is the name of the profile.profile_name is sysname, with no default.[ @agent_type= ] 'agent_type'
Is the type of replication agent.agent_type is int, with no default, and can be one of these values.Değer
Açıklama
1
Anlık Görüntü Aracısı
2
Günlük Okuyucu Aracısı
3
Dağıtım Aracısı
4
Birleştirme Aracısı
9
Queue Reader Agent
[ @profile_type= ] profile_type
Is the type of profile.profile_type is int, with a default of 1.0 sistem profili gösterir.1 özel bir profili gösterir.Bu saklı yordam kullanılarak yalnızca özel profiller oluşturulabilir; Bu nedenle tek geçerli değer olan 1.Only Microsoft SQL Server creates system profiles.
[ @description= ] 'description'
Is a description of the profile.description is nvarchar(3000), with no default.[ @default= ] default
Profili için varsayılan olup olmadığını gösterir agent_type*. defaultİş bit, varsayılan değer 0.*1 eklenmesini profili tarafından belirtilen Aracısı için yeni varsayılan profil olacaktır gösterir agent_type.
Dönüş Kodu Değerleri
0 (başarılı) veya 1 (başarısız)
Açıklamalar
sp_add_agent_profile anlık görüntü çoğaltması çoğaltması çoğaltma, işlem çoğaltma ve birleştirme çoğaltması kullanılır.
Varsayılan Aracısı parametre değerleri ile birlikte özel Aracısı profilleri eklenir.Use sp_change_agent_parameter (Transact-SQL) Bu varsayılan değerleri değiştirmek için ya da sp_add_agent_parameter (Transact-SQL) ekleme ek parametreleri.
Zaman sp_add_agent_profile ise yürütülen, bir satır için yeni özel profile eklenen MSagent_profiles (Transact-SQL) Tablo ve ilişkili varsayılan parametreleri bu profil için eklenen MSagent_parameters (Transact-SQL) tablosu.
İzinler
Yalnızca üyeleri sysadmin sabit sunucu rolü olabilir yürütmek sp_add_agent_profile.
Ayrıca bkz.