User.Create User.Create User.Create Method

Definition

Creates a database user on the instance of SQL Server as defined by the user object.

Overloads

Create() Create() Create()

Creates a database user on the instance of SQL Server as defined by the User object.

Create(SecureString) Create(SecureString) Create(SecureString)

Creates a database user on the instance of SQL Server as defined by the User object with specified password using a secure string.

Create(String) Create(String) Create(String)

Creates a database user on the instance of SQL Server as defined by the User object with specified password.

Create() Create() Create()

Creates a database user on the instance of SQL Server as defined by the User object.

public:
 virtual void Create();
public void Create ();
Public Sub Create ()

Examples

Managing Users, Roles, and Logins

Create(SecureString) Create(SecureString) Create(SecureString)

Creates a database user on the instance of SQL Server as defined by the User object with specified password using a secure string.

public:
 void Create(System::Security::SecureString ^ password);
public void Create (System.Security.SecureString password);
Public Sub Create (password As SecureString)
Parameters
password
SecureString SecureString SecureString

The user password.

Create(String) Create(String) Create(String)

Creates a database user on the instance of SQL Server as defined by the User object with specified password.

public:
 void Create(System::String ^ password);
public void Create (string password);
Public Sub Create (password As String)
Parameters
password
String String String

The user password.

Applies to