Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the Login class on the specified instance of Microsoft SQL Server and with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
server As Server, _
name As String _
)
public Login (
Server server,
string name
)
public:
Login (
Server^ server,
String^ name
)
public Login (
Server server,
String name
)
public function Login (
server : Server,
name : String
)
Parameters
- server
A Server object value that specifies the instance of SQL Server to which the login account has access.
- name
A String value that specifies the name of the SQL Server login account.
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
Login Class
Login Members
Microsoft.SqlServer.Management.Smo Namespace
Other Resources
Managing Users, Roles, and Logins
Principals
CREATE LOGIN (Transact-SQL)