Share via


LinkedServerLogin Constructor (LinkedServer, String)

Initializes a new instance of the LinkedServerLogin class for the specified linked 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 ( _
    linkedServer As LinkedServer, _
    name As String _
)
public LinkedServerLogin (
    LinkedServer linkedServer,
    string name
)
public:
LinkedServerLogin (
    LinkedServer^ linkedServer, 
    String^ name
)
public LinkedServerLogin (
    LinkedServer linkedServer, 
    String name
)
public function LinkedServerLogin (
    linkedServer : LinkedServer, 
    name : String
)

Parameters

  • linkedServer
    A LinkedServer object that specifies the linked server to which the linked server logon has permission to access.
  • name
    A String value that specifies the name of the linked server logon.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Link to an OLE-DB Provider Server 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

LinkedServerLogin Class
LinkedServerLogin Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Using Linked Servers in SMO
Linking Servers
sp_addlinkedsrvlogin (Transact-SQL)