Freigeben über


SecurityMode Property (ReplicationSecurity)

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The SecurityModeproperty specifies an authentication mode used for the referenced object's initiated connection to an indicated Distributor.

Syntax

object.SecurityMode [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.

  • value
    A long integer that specifies a security mode as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetSecurityMode(SQLDMO_SECURITY_TYPE* pRetVal);
HRESULT SetSecurityMode(SQLDMO_SECURITY_TYPE NewValue);

Settings

Set value using these SQLDMO_SECURITY_TYPE values.

Constant

Value

Description

SQLDMOSecurity_Integrated

1

Allows Windows Authentication only.

SQLDMOSecurity_Mixed

2

Allows Windows Authentication or SQL Server Authentication.

SQLDMOSecurity_Normal

0

Allows SQL Server Authentication only.

SQLDMOSecurity_Unknown

9

The security type is unknown.