--- title: "SetDatabaseQueryTimeout Method (WMI MSReportServer_ConfigurationSetting) | Microsoft Docs" ms.custom: "" ms.date: "03/01/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "reporting-services-sharepoint" - "reporting-services-native" ms.tgt_pltfrm: "" ms.topic: "article" apiname: - "SetDatabaseQueryTimeout (WMI MSReportServer_ConfigurationSetting Class)" apilocation: - "reportingservices.mof" apitype: "MOFDef" helpviewer_keywords: - "SetDatabaseQueryTimeout method" ms.assetid: bd2809e5-7848-45b3-a502-b04fc698b646 caps.latest.revision: 19 author: "guyinacube" ms.author: "asaxton" manager: "erikre" --- # ConfigurationSetting Method - SetDatabaseQueryTimeout 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](../../reporting-services/wmi-provider-library-reference/msreportserver-configurationsetting-members.md)