次の方法で共有


LinkedServer.QueryTimeout プロパティ

クエリがタイムアウトするまで実行を待機する秒数を取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property QueryTimeout As Integer 
    Get 
    Set
'使用
Dim instance As LinkedServer 
Dim value As Integer 

value = instance.QueryTimeout

instance.QueryTimeout = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int QueryTimeout { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int QueryTimeout {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member QueryTimeout : int with get, set
function get QueryTimeout () : int 
function set QueryTimeout (value : int)

プロパティ値

型: System.Int32
クエリがタイムアウトするまで実行を待機する秒数を表す Int32 値です。

使用例

SMO でのリンク サーバーの使用

関連項目

参照

LinkedServer クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

リンク サーバー (データベース エンジン)

sp_addlinkedserver (Transact-SQL)