SecurityMode Property (ReplicationSecurity) (SQL-DMO)

The SecurityMode property specifies an authentication mode used for the referenced object’s initiated connection to an indicated Distributor.

Applies To

ReplicationSecurity Object

Syntax

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

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.

Data Type

Long, enumerated.

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetSecurityMode(SQLDMO_SECURITY_TYPE* pRetVal);

HRESULT SetSecurityMode(SQLDMO_SECURITY_TYPE NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.