SQL-DMO
ListMembers Method (Login, User)
The ListMembers method returns a NameList object that enumerates the Microsoft® SQL Server™ 2000 database roles in which a database user has membership, or the server roles in which a login has membership.
Applies To
Login Object | User Object |
Syntax
object.ListMembers( ) as NameList
Parts
object
Expression that evaluates to an object in the Applies To list
Prototype (C/C++)
HRESULT ListMembers(
LPSQLDMONAMELIST* ppList);
Returns
A NameList object that enumerates system and user-defined security roles.