The PublisherSecurityMode property specifies the security mode used when connecting to the Publisher.

object.PublisherSecurityMode [= value]

Applies To

SQL Server Compact 3.5 Replication object

  • value
    SECURITY_TYPE constant that specifies the security type.

Data Type

SECURITY_TYPE

Constant

Value

Description

DB_AUTHENTICATION

0

SQL Server Authentication (Default)

NT_AUTHENTICATION

1

Windows Authentication

Modifiable

Read/write

Prototype

HRESULT get_PublisherSecurityMode(SECURITY_TYPE *pVal);
HRESULT put_PublisherSecurityMode(SECURITY_TYPE newVal);

If PublisherSecurityMode is set to DB_AUTHENTICATION (default), then PublisherLogin must be specified. The default for PublisherPassword is an empty string.

Reference

PublisherLogin Property (Replication)

PublisherPassword Property (Replication)

Replication Object Properties