ChangeAgentParameter Method

SQL-DMO

SQL-DMO

ChangeAgentParameter Method

The ChangeAgentParameter method modifies a replication agent profile parameter.

Applies To
Distributor Object
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

bstrParameter
Name

String that specifies a profile parameter by name

bstrParameter
Value

String that provides a new value for the parameter

Prototype (C/C++)

HRESULT ChangeAgentParameter(long lProfileID,
SQLDMO_LPCSTR szParameterName, SQLDMO_LPCSTR szParameterValue);