Метод Login.Create (String, 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 String, _
    options As LoginCreateOptions _
)
'Применение
Dim instance As Login 
Dim password As String 
Dim options As LoginCreateOptions

instance.Create(password, options)
public void Create(
    string password,
    LoginCreateOptions options
)
public:
void Create(
    String^ password, 
    LoginCreateOptions options
)
member Create : 
        password:string * 
        options:LoginCreateOptions -> unit
public function Create(
    password : String, 
    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

Свойства имени входа (страница «Общие»)