ChangeAgentParameter Method
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The ChangeAgentParameter method modifies a replication agent profile parameter.
Syntax
object
.ChangeAgentParameter(
lProfileID
,
bstrParameterName
,
bstrParameterValue
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
- lProfileID
Long integer that identifies a replication agent profile.
- bstrParameterName
String that specifies a profile parameter by name.
- bstrParameterValue
String that provides a new value for the parameter.
Prototype (C/C++)
HRESULT ChangeAgentParameter(long lProfileID,
SQLDMO_LPCSTR szParameterName, SQLDMO_LPCSTR szParameterValue);