TechNet
Export (0) Print
Expand All

Server.EnumServerPermissions Method

 

Enumerates a list of server permissions for the instance of SQL Server.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

NameDescription
System_CAPS_pubmethodEnumServerPermissions()

Enumerates a list of server permissions for the instance of SQL Server.

System_CAPS_pubmethodEnumServerPermissions(ServerPermissionSet)

Enumerates a list of server permissions for a specified permission on the instance of SQL Server.

System_CAPS_pubmethodEnumServerPermissions(String)

Enumerates a list of server permissions for a specified grantee on the instance of SQL Server.

System_CAPS_pubmethodEnumServerPermissions(String, ServerPermissionSet)

Enumerates a list of server permissions for a specified grantee and a specified permission on the instance of SQL Server.

Use this method to return an array of ServerPermissionInfo objects that contain information about the permissions currently set on the instance of SQL Server.

Return to top
Show:
© 2016 Microsoft