Expand Minimize
This topic has not yet been rated - Rate this topic

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
Member nameDescription
NoneValue = 5. None.
LoginValue = 0. A SQL Server login.
ServerRoleValue = 1. A fixed server role.
UserValue = 2. A database user.
DatabaseRoleValue = 3. A database role (fixed or user-defined).
ApplicationRoleValue = 4. An application role.

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.