For every login in SQL Server, lists corresponding user information for every database that has a user mapped to the login. List is returned in a QueryResults object.
QueryResults = SQLServer.EnumLoginMappings
HRESULT pSQLServer->EnumLoginMappings ( LPSQLOLEQUERYRESULTS* ppQueryResults );
Element | Type | Description |
---|
QueryResults | QueryResults | Returned QueryResults object |
This method will return a results set for each login.
ColumnName | ColumnType |
---|
LoginName | SQLOLE_DTypeChar |
DBName | SQLOLE_DTypeChar |
UserName | SQLOLE_DTypeChar |
AliasName | SQLOLE_DTypeChar |