Classe DatabaseMapping
The DatabaseMapping object represents a SQL Server database mapping.
Gerarchia di ereditarietà
System.Object
Microsoft.SqlServer.Management.Smo.DatabaseMapping
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public NotInheritable Class DatabaseMapping
'Utilizzo
Dim instance As DatabaseMapping
public sealed class DatabaseMapping
public ref class DatabaseMapping sealed
[<SealedAttribute>]
type DatabaseMapping = class end
public final class DatabaseMapping
Nel tipo DatabaseMapping sono esposti i membri seguenti.
Costruttori
Nome | Descrizione | |
---|---|---|
![]() |
DatabaseMapping | Initializes a new instance of the DatabaseMapping class for the specified login, database, and user. |
In alto
Proprietà
Nome | Descrizione | |
---|---|---|
![]() |
DBName | Gets the name of the database in which the login is mapped to the database user. |
![]() |
LoginName | Gets the name of the login that is mapped to the user in the database. |
![]() |
UserName | Gets the database user that is mapped to the login in the database. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
![]() |
Equals | Ereditato da Object. |
![]() |
GetHashCode | Ereditato da Object. |
![]() |
GetType | Ereditato da Object. |
![]() |
ToString | Returns a string that represents the DatabaseMapping object. Esegue l'override di Object.ToString(). |
In alto
Osservazioni
A login allows access to SQL Server, though it does not allocate permissions at a database level. Each login requires mapping to a database user within each database. The information about each mapping is stored in the DatabaseMapping object. Every login has a database mapping for each database that it can access.
Thread Safety
Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.
Esempi
Gestione di utenti, ruoli e account di accesso
Protezione dei thread
I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Smo