Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Initializes a new instance of the User class on the specified database with the specified name.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
database As Database, _
name As String _
)
public User (
Database database,
string name
)
public:
User (
Database^ database,
String^ name
)
public User (
Database database,
String name
)
public function User (
database : Database,
name : String
)
Parametri
- database
A Database object that specifies the database to which the user belongs.
- name
A String value that specifies the name of the user.
Osservazioni
Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.
Esempio
How to: Enumerate Logins and Associated Users in Visual Basic .NET
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
User Class
User Members
Microsoft.SqlServer.Management.Smo Namespace
Altre risorse
Managing Users, Roles, and Logins
Entità
CREATE USER (Transact-SQL)