The SecurityMode property specifies an authentication mode used for the referenced object’s initiated connection to an indicated Distributor.
object.SecurityMode [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying a security mode as described in Settings |
Constant | Value | Description |
---|---|---|
SQLDMOReplSecurity_Normal | 0 | Use SQL Server Authentication. Specify login identifier and password by using the StandardLogin and StandardPassword properties. |
SQLDMOReplSecurity_Integrated | 1 | Use Windows NT Authentication. The startup account used by the SQL Server Agent service provides authentication data. |
SQLDMOReplSecurity_ PredefinedServer |
2 | Use authentication defined in a registry entry listing the SQL Server installation. |
Long, enumerated.
Read/write
HRESULT GetSecurityMode(SQLDMO_SECURITY_TYPE* pRetVal);
HRESULT SetSecurityMode(SQLDMO_SECURITY_TYPE NewValue);