Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Login.Create Method (String, LoginCreateOptions)

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public void Create(
	string password,
	LoginCreateOptions options
)

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.