SecurityMode Property (DistributionDatabase, IntegratedSecurity)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The SecurityMode property directs the authentication mode used by an instance of Microsoft SQL Server or a connection to a SQL Server database used for replication distribution.
구문
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 for the IntegratedSecurity object. Write-only for the DistributionDatabase object.
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. |
주의
By default, an instance of SQL Server performs login authentication using either Windows Authentication or SQL Server Authentication at the direction of the connection.