Freigeben über


LinkedServer.ConnectTimeout Property

Gets or sets the number of seconds to wait for a connection to be established with the linked server before timing out.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Property ConnectTimeout As Integer
public int ConnectTimeout { get; set; }
public:
property int ConnectTimeout {
    int get ();
    void set (int value);
}
/** @property */
public int get_ConnectTimeout ()

/** @property */
public void set_ConnectTimeout (int value)
public function get ConnectTimeout () : int

public function set ConnectTimeout (value : int)

Eigenschaftswert

An Int32 value that specifies the time (in seconds) the local server attempts to connect to the remote server before timing out.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

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

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

Using Linked Servers in SMO
Verbindungsserver
sp_addlinkedserver (Transact-SQL)