Partager via


LinkedServerLogin Constructor (LinkedServer, String)

Initializes a new instance of the LinkedServerLogin class for the specified linked server and with the specified name.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • 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.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

How to: Link to an OLE-DB Provider Server in Visual Basic .NET

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Using Linked Servers in SMO
Liaison des serveurs
sp_addlinkedsrvlogin (Transact-SQL)