--- title: "SetDatabaseQueryTimeout Method (WMI MSReportServer_ConfigurationSetting) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: "reporting-services-native" ms.topic: conceptual api_name: - "SetDatabaseQueryTimeout (WMI MSReportServer_ConfigurationSetting Class)" api_location: - "reportingservices.mof" topic_type: - "apiref" helpviewer_keywords: - "SetDatabaseQueryTimeout method" ms.assetid: bd2809e5-7848-45b3-a502-b04fc698b646 author: maggiesMSFT ms.author: maggies manager: kfile --- # SetDatabaseQueryTimeout Method (WMI MSReportServer_ConfigurationSetting) Specifies the default time-out value for report server database queries. ## Syntax ```vb Public Sub SetDatabaseQueryTimeout(LogonTimeout as Int32, _ ByRef HRESULT as Int32) ``` ```csharp public void SetDatabaseQueryTimeout (Int32 LogonTimeout, out Int32 HRESULT); ``` ## Parameters *LogonTimeout* The default timeout value, in seconds, for report server database queries. *HRESULT* [out] Value indicating whether the call succeeded or failed. ## Return Value Returns an *HRESULT* indicating success or failure of the method call. A value of 0 indicates that the method call was successful. A non-zero value indicates that an error has occurred. ## Requirements **Namespace:** [!INCLUDE[ssRSWMInmspcA](../../includes/ssrswminmspca-md.md)] ## See Also [MSReportServer_ConfigurationSetting Members](msreportserver-configurationsetting-members.md)