مشاركة عبر


Login.EnumDatabaseMappings Method

Enumerates a list of login account mappings to databases and database users.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumDatabaseMappings As DatabaseMapping()
'Usage
Dim instance As Login 
Dim returnValue As DatabaseMapping()

returnValue = instance.EnumDatabaseMappings()
public DatabaseMapping[] EnumDatabaseMappings()
public:
array<DatabaseMapping^>^ EnumDatabaseMappings()
member EnumDatabaseMappings : unit -> DatabaseMapping[] 
public function EnumDatabaseMappings() : DatabaseMapping[]

Return Value

Type: array<Microsoft.SqlServer.Management.Smo.DatabaseMapping[]
A DatabaseMapping object array value that lists the login account mappings to databases and database users.

Examples

Managing Users, Roles, and Logins

See Also

Reference

Login Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Principals (Database Engine)

CREATE LOGIN (Transact-SQL)