ListMembers Method (SQLServer)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The ListMembers method returns a NameList object that enumerates the Microsoft SQL Server server or database roles in which the SQLServerobject login has membership.
구문
object
.ListMembers(
Type
)
as
NameList
Parts
object
Expression that evaluates to an object in the Applies To list.Type
Long integer that identifies a SQL Server role type constricting NameList membership as described in Settings.
Prototype (C/C++)
HRESULT ListMembers(
SQLDMO_ROLE_TYPE Type,
LPSQLDMONAMELIST* ppList);
Settings
Use the values enumerated below when setting the Type argument.
Constant |
Value |
Description |
---|---|---|
SQLDMORole_All |
3 |
List server and database roles in which the connected login is a member. |
SQLDMORole_Database |
2 |
List database roles in which the connected login is a member. |
SQLDMORole_Server |
1 |
List server roles in which the connected login is a member. |
Returns
A NameList object that enumerates system and user-defined security roles.