Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PrincipalType Enumeration
Collapse the table of content
Expand the table of content

PrincipalType Enumeration

The PrincipalType enumeration contains values that specify the type of user, role, or login.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SqlEnum (in microsoft.sqlserver.sqlenum.dll)

public enum PrincipalType
public enum PrincipalType
public enum PrincipalType

Member nameDescription
ApplicationRoleValue = 4. An application role.
DatabaseRoleValue = 3. A database role (fixed or user-defined).
LoginValue = 0. A Microsoft SQL Server login.
ServerRoleValue = 1. A fixed server role.
UserValue = 2. A database user.

The PrincipalType enumeration class is served by the GranteeType and GrantorType properties.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.


Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft