EnumDatabaseMappings Method (SQL-DMO)

The EnumDatabaseMappings method returns a QueryResults object enumerating the databases in which a username represents the referenced login.

Applies To

Login Object

Syntax

object.EnumDatabaseMappings() as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list

Returns

A QueryResults object containing one result set defined by these columns.

Column Data type Description
LoginName nvarchar(129) Name of the login record enumerated (referenced by the Login object)
DBName nvarchar(129) Name of a database containing a user representing the login
UserName nvarchar(129) Name of the user record representing the login
AliasName nvarchar(129) Reserved

Prototype (C/C++)

HRESULT EnumDatabaseMappings(
LPSQLDMOQUERYRESULTS* ppResults);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.