Share via


Login.Create 메서드 (SecureString, LoginCreateOptions)

Creates a login account on the instance of SQL Server as defined by the Login object.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Sub Create ( _
    password As SecureString, _
    options As LoginCreateOptions _
)
‘사용 방법
Dim instance As Login 
Dim password As SecureString 
Dim options As LoginCreateOptions

instance.Create(password, options)
public void Create(
    SecureString password,
    LoginCreateOptions options
)
public:
void Create(
    SecureString^ password, 
    LoginCreateOptions options
)
member Create : 
        password:SecureString * 
        options:LoginCreateOptions -> unit
public function Create(
    password : SecureString, 
    options : LoginCreateOptions
)

매개 변수

주의

The [FlagsAttribute] enumeration, LoginCreateOptions contains values that are used to specify the password options when you create a logon.

Value

Description

None = 0

No options.

IsHashed = 1

Indicates if the password has already been hashed, which allows passwords to be reapplied to a login.

MustChange = 2

Indicates whether the user has to change the password on the next login.

참고 항목

참조

Login 클래스

Create 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

SQL Server 2008 Security Changes

로그인 속성(일반 페이지)