Condividi tramite


ListMembers Method (Login, User)

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

The ListMembers method returns a NameList object that enumerates the Microsoft SQL Server database roles in which a database user has membership, or the server roles in which a login has membership.

Sintassi

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.

Applies To:

Login Object

User Object