Export (0) Print
Expand All

DatabaseMapping.UserName Property

Gets the database user that is mapped to the login in the database.

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

public string UserName { get; }

Property Value

Type: String
A String value that specifies the database user.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft