sp_change_agent_profile (Transact-SQL)

適用於:SQL ServerAzure SQL 受控執行個體

變更儲存在 MSagent_profiles (Transact-SQL) 數據表中的複寫代理程式設定文件參數。 此預存程式會在任何資料庫的散發者端執行。

Transact-SQL 語法慣例

語法

  
sp_change_agent_profile [ @profile_id = ] profile_id   
        , [ @property = ] 'property'   
        , [ @value = ] 'value'   

引數

[ @profile_id = ] profile_id 這是設定文件的識別碼。 profile_id為 int,沒有預設值。

[ @property = ] 'property' 這是屬性的名稱。 屬性sysname,沒有預設值。

[ @value = ] 'value' 這是屬性的新值。 valuenvarchar(3000),沒有預設值。

下表描述可變更的配置檔屬性。

屬性 描述
description 配置檔的描述。

傳回碼值

0 (成功) 或 1 (失敗)

備註

sp_change_agent_profile用於所有類型的複寫。

權限

只有系統管理員固定伺服器角色的成員才能執行sp_change_agent_profile

另請參閱

sp_add_agent_profile (Transact-SQL)
sp_drop_agent_profile (Transact-SQL)
sp_help_agent_profile (Transact-SQL)
系統預存程序 (Transact-SQL)