Udostępnij przez


Login.Create Method (SecureString, LoginCreateOptions)

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

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
Public Sub Create ( _
    password As SecureString, _
    options As LoginCreateOptions _
)
public void Create (
    SecureString password,
    LoginCreateOptions options
)
public:
void Create (
    SecureString^ password, 
    LoginCreateOptions options
)
public void Create (
    SecureString password, 
    LoginCreateOptions options
)
public function Create (
    password : SecureString, 
    options : LoginCreateOptions
)

Parameters

Remarks

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

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.