--- title: "SetDatabaseLogonTimeout 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: - "SetDatabaseLogonTimeout (WMI MSReportServer_ConfigurationSetting Class)" api_location: - "reportingservices.mof" topic_type: - "apiref" helpviewer_keywords: - "SetDatabaseLogonTimeout method" ms.assetid: b8773596-5b98-4355-a4ab-4412e1317c67 author: maggiesMSFT ms.author: maggies manager: kfile --- # SetDatabaseLogonTimeout Method (WMI MSReportServer_ConfigurationSetting) Specifies the default timeout value for report server database connections. ## Syntax ```vb Public Sub SetDatabaseLogonTimeout(LogonTimeout as Int32, _ ByRef HRESULT as Int32) ``` ```csharp public void SetDatabaseLogonTimeout(Int32 LogonTimeout, out Int32 HRESULT); ``` ## Parameters *LogonTimeout* The default time-out value, in seconds, for report server database connections. *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)