Share via


Type Property (Login)

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The Type property exposes configured attributes of the referenced Microsoft SQL Server component.

구문

object
.Type [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.
  • value
    A long integer that specifies a SQL Server login record source as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write when using the Login object to define a new SQL Server login. Read-only when the Login object references an existing login.

Prototype (C/C++)

HRESULT GetType(SQLDMO_LOGIN_TYPE* pRetVal)
HRESULT SetType(SQLDMO_LOGIN_TYPE NewValue)

Settings

Constant Value Description

SQLDMOLogin_NTGroup

1

The referenced login is the name of a Microsoft Windows security group.

SQLDMOLogin_NTUser

0

The referenced login is the name of a Windows user.

SQLDMOLogin_Standard

2

The referenced login is used for SQL Server Authentication. A login name and password may be required when a client connects using the login.

주의

When the Login object is used to create a SQL Server login record, setting the Type property directs evaluation of other properties. For example, if the Type property specifies that the Name property is interpreted as a Windows user or group, Windows Authentication is used for the login created and any setting for the Password property is ignored when the Login object is added to its containing collection. Similarly, if the Type property specifies a SQL Server Authentication login record, any setting for the DenyNTLogin property is ignored. For more information, see Login Object.

Applies To:

Login Object