This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumAccountInfo method returns a QueryResults object that enumerates Microsoft Windows accounts granted access permission to an instance of Microsoft SQL Server.
A QueryResults object that contains one result set defined by these columns.
Windows account name
String that identifies account type, such as group
String that specifies privilege level, such as admin or username
mapped login name
SQL Server login name used when mapping the account
String that specifies Windows group granting access
When using the Account argument to restrict results, fully qualify the Windows account name, that specifies both domain and user or group name. For example:
oQR = oSQLServer.EnumAccountInfo("SEATTLE\someone")
When specifying a Windows group using the Account argument, the QueryResults object returned contains one row for each Windows account with membership in the group.
Use the ListAll argument when that enumerates account information for Windows NT users. When ListAll is TRUE, the EnumAccountInfo method returns a result set that contains all SQL Server security-enabled groups in which the specified user has membership.