User Class
SQL Server 2005
The User object represents a Microsoft SQL Server user.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
public sealed class User : ScriptNameObjectBase, IObjectPermission, ICreatable, IDroppable, IAlterable, IRenamable, IExtendedProperties, IScriptable
public final class User extends ScriptNameObjectBase implements IObjectPermission, ICreatable, IDroppable, IAlterable, IRenamable, IExtendedProperties, IScriptable
public final class User extends ScriptNameObjectBase implements IObjectPermission, ICreatable, IDroppable, IAlterable, IRenamable, IExtendedProperties, IScriptable
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
To get User object properties, users can be a member of the public fixed server role.
To set User object properties, uses must have ALTE ANY USER permission on the database or be a member of the db_owner fixed database role.
To change the default schema, users must have ALTER permission on the specified user or be the owner of the user.
To create or drop a user, users must have ALTER ANY USER permission on the fixed server role or be a member of the db_owner fixed database role.
To grant, deny, or revoke permission on the specified user to other users, users must have CONTROL permission on the specified user.
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
