SubscriberSecurityMode Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The SubscriberSecurityMode property is used to configure the authentication mode used for connections originated by the agent implementing a Subscriber-initiated subscription.
語法
object.SubscriberSecurityMode=value
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A long integer or constant value as described in Settings.
Data Type
Long, enumerated
Modifiable
Write-only
Prototype (C/C++)
HRESULT SetSubscriberSecurityMode(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 cannot be determined. |