नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
loginName As String, _
dbName As String, _
userName As String _
)
public DatabaseMapping (
string loginName,
string dbName,
string userName
)
public:
DatabaseMapping (
String^ loginName,
String^ dbName,
String^ userName
)
public DatabaseMapping (
String loginName,
String dbName,
String userName
)
public function DatabaseMapping (
loginName : String,
dbName : String,
userName : String
)
Parameters
- loginName
A String value that specifies the login.
- dbName
A String value that specifies the database.
- userName
A String value that specifies the user.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Enumerate Logins and Associated Users in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
DatabaseMapping Class
DatabaseMapping Members
Microsoft.SqlServer.Management.Smo Namespace