EnumAccountInfo List

SQLServer.IntegratedSecurity Object

Description

Lists information about a Windows NT group or user account and how it is used by SQL Server. List is returned in a QueryResults object.

Visual Basic

QueryResults = IntegratedSecurity.EnumAccountInfo (
[[Account :=] strAccount,]
[[ListAll :=] bListAll] )

C++

HRESULT pIntegratedSecurity->EnumAccountInfo ( LPSQLOLEQUERYRESULTS* ppQueryResults,
SQLOLE_LPCSTR
strAccount = NULL,
BOOL
bListAll = FALSE );

Elements

Element Type Description

QueryResults QueryResults Returned QueryResults object
strAccount String Windows NT group or user account
bListAll Boolean Determines if information is returned for all Windows NT groups

QueryResults

ColumnName ColumnType

account name SQLOLE_DTypeChar
type SQLOLE_DTypeChar
privilege SQLOLE_DTypeChar
mapped login name SQLOLE_DTypeChar
permission path SQLOLE_DTypeChar

Reference

xp_logininfo