PublisherSecurityMode Property

Replication Programming

Replication Programming

PublisherSecurityMode Property

The PublisherSecurityMode property sets or returns the security mode when connecting to the Publisher.

Applies To

SQLDistribution Object

SQLMerge Object

SQLSnapshot Object

Syntax

object.PublisherSecurityMode [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value SECURITY_TYPE constant that specifies the Publisher security mode.
Remarks

If the value is DB_AUTHENTICATION (default), PublisherLogin and PublisherPassword will be used when connecting to the Publisher.

NT_AUTHENTICATION is not supported for PublisherSecurityMode unless the Publisher runs on the Microsoft® Windows NT® 4.0 or Microsoft Windows® 2000 operating system. NT_AUTHENTICATION is not supported for any of DistributorSecurityMode, PublisherSecurityMode, and SubscriberSecurityMode unless the computer on which the replication control is running uses the Windows NT 4.0 or Windows 2000 operating system.

Data Type

SECURITY_TYPE

Modifiable

Read/write

Prototype C/C++

HRESULT get_PublisherSecurityMode(SECURITY_TYPE *pVal);

HRESULT put_PublisherSecurityMode(SECURITY_TYPE newVal);

See Also

PublisherLogin Property

PublisherPassword Property