The DistributorSecurityMode property specifies the security mode used when connecting to the Distributor.

object.DistributorSecurityMode [= value]

Applies To

SQL Server Compact 3.5 Replication object

  • value
    The SECURITY_TYPE constant that specifies the mode of security enforced at the Distributor.

Data Type

SECURITY_TYPE

Constant

Value

Description

DB_AUTHENTICATION

0

Standard security (Default)

NT_AUTHENTICATION

1

Integrated security

Modifiable

Read/write

Prototype

HRESULT get_DistributorSecurityMode(SECURITY_TYPE *pVal);
HRESULT put_DistributorSecurityMode(SECURITY_TYPE newVal);

If the value is set to DB_AUTHENTICATION (the default),DistributorLogin and DistributorPassword are used when connecting to the Distributor. If the value is NT_AUTHENTICATION, the Microsoft Internet Information Services (IIS) Windows user account is used when connecting to the Distributor.

If no Distributor connection property is specified, it is assumed the Publisher and Distributor are on the same instance of SQL Server, and the Publisher connection properties are used when connecting to the Distributor. However, if you set any one of the Distributor connection properties, you must set all of the required Distributor properties.

Reference

DistributorLogin Property (Replication)

DistributorPassword Property (Replication)

Replication Object Properties