分享方式:


sp_change_agent_profile (Transact-SQL)

適用於:SQL Server Azure SQL 受控執行個體

變更儲存在MSagent_profiles數據表中的複寫代理程式配置檔參數。 此預存程式會在任何資料庫的散發者端執行。

Transact-SQL 語法慣例

語法

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

引數

[ @profile_id = ] profile_id

配置文件的識別碼。 @profile_id為 int,沒有預設值。

[ @property = ] N'property'

屬性的名稱。 @property為 sysname,沒有預設值。

[ @value = ] N'value'

屬性的新值。 @value為 nvarchar(3000),沒有預設值。

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

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

傳回碼值

0 (成功) 或 1 (失敗)。

備註

sp_change_agent_profile 用於所有類型的複寫。

權限

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