Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

PrincipalType Enumeration

 

Applies To: SQL Server 2016 Preview

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 Enumeration PrincipalType

Member nameDescription
ApplicationRole

Value = 4. An application role.

DatabaseRole

Value = 3. A database role (fixed or user-defined).

Login

Value = 0. A SQL Server login.

None

Value = 5. None.

ServerRole

Value = 1. A fixed server role.

User

Value = 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.

Return to top

Community Additions

Show:
© 2015 Microsoft