EnumLoginMappings Method
В будущей версии Microsoft SQL Server эта возможность будет удалена. Избегайте использования этой возможности в новых разработках и запланируйте изменение существующих приложений, в которых она применяется.
The EnumLoginMappings method returns a QueryResults object that contains multiple result sets, where each result set enumerates a Microsoft SQL Server login and the database user(s) to which the login is mapped.
Синтаксис
object
.EnumLoginMappings()
as
QueryResults
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT EnumLoginMappings(
LPSQLDMOQUERYRESULTS* ppResults);
Returns
A QueryResults object that contains multiple result sets each defined by these columns.
Column | Data type | Description |
---|---|---|
AliasName |
nvarchar(129) |
Reserved for future use. |
DBName |
nvarchar(129) |
If applicable, a database that contains a user mapping the login. |
LoginName |
nvarchar(129) |
Name of a SQL Server login. |
UserName |
nvarchar(129) |
If applicable, the database user to which the login is mapped. |