Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
User Class
User Constructor
 User Constructor (Database, String)

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
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)
Visual Basic (Declaration)
Public Sub New ( _
    database As Database, _
    name As String _
)
C#
public User (
    Database database,
    string name
)
C++
public:
User (
    Database^ database, 
    String^ name
)
J#
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.

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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker