User.Create Method

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

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

Syntax

'Declaration
Public Sub Create
'Usage
Dim instance As User

instance.Create()
public void Create()
public:
virtual void Create() sealed
abstract Create : unit -> unit  
override Create : unit -> unit
public final function Create()

Implements

ICreatable.Create()

Examples

Managing Users, Roles, and Logins

See Also

Reference

User Class

Create Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Principals (Database Engine)

CREATE USER (Transact-SQL)