User Constructor (Database, String)

Initializes a new instance of the User class on the specified database with the specified name.

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

VisualBasicDeclaration
Public Sub New ( _
    database As Database, _
    name As String _
)
CSharp
public User (
    Database database,
    string name
)
ManagedCPlusPlus
public:
User (
    Database^ database, 
    String^ name
)
JSharp
public User (
    Database database, 
    String name
)
JScript
public function User (
    database : Database, 
    name : String
)

Parameters

database

A Database object that specifies the database to which the user belongs.

name

A String value that specifies the name of the user.

Example

Managing Users, Roles, and Logins

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.
See Also

Tags :


Page view tracker