SetDatabaseQueryTimeout 方法 (WMI MSReportServer_ConfigurationSetting)

为报表服务器数据库查询指定默认超时值。

语法

Public Sub SetDatabaseQueryTimeout(LogonTimeout as Int32, _
    ByRef HRESULT as Int32)
public void SetDatabaseQueryTimeout (Int32 LogonTimeout, 
    out Int32 HRESULT);

参数

  • LogonTimeout
    报表服务器数据库查询的默认超时值,单位为秒。

  • HRESULT
    [out] 指示调用是成功还是失败的值。

返回值

返回 HRESULT,指示方法调用是成功还是失败。值 0 指示方法调用已成功。非零值指示已发生错误。

要求

命名空间: root\Microsoft\SqlServer\ReportServer\RS_<EncodedInstanceName>\v10\Admin

平台: Windows Server 2003 Datacenter Edition;Windows Server 2003 Enterprise Edition;Windows Server 2003 Standard Edition;Windows Vista;Windows XP Professional Service Pack 2 (SP2) 或 Service Pack 1 (SP1) 或者 Windows 2000(所有版本)