Role type constants control the output of the ListMembers method of the SQLServer object.
Constant | Value | Description |
---|---|---|
SQLDMORole_All | 3 | List members of server and database roles |
SQLDMORole_Database | 2 | List members of database roles only |
SQLDMORole_Server | 1 | List members of server roles only |
ListMembers Method (SQLServer)