> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/de/knowledge-base/troubleshooting-articles/sql-server-connection-timeout.md).

# SQL Server-Verbindungs-Timeout

Verbindungszeitüberschreitungen mit einem SQL Server können viele Formen annehmen. Hier sind einige der häufigsten:

`System.Data.SqlClient.SqlException : Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.`

`System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out.`

`Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.)`

`Microsoft.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=5018; handshake=12;`

Die vollständige Liste der Fehler finden Sie in [Timeout expired messages when connecting to SQL Server](https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/timeout-expired-error#verify-timeout-expired-errors).

### Lösung 1

Um dieses Problem zu beheben, sollten Sie als ersten Ansatz [Ihre Verbindungszeitüberschreitung erhöhen](/rdm/de/getting-started/workspaces/workspace-types/alternative-workspaces/microsoft-sql-server.md#advanced).

1. Gehen Sie in Remote Desktop Manager zu ***Datei – Datenquellen*** und bearbeiten Sie Ihre Microsoft SQL Server-Datenquelle, indem Sie auf das Symbol ***Datenquelle bearbeiten*** klicken.
2. Erhöhen Sie in der Registerkarte ***Erweitert*** die Verzögerung für ***Verbindungszeitüberschreitung***.
3. Speichern Sie Ihre Änderungen.

### Lösung 2

Wenn das Anpassen der Verbindungszeitüberschreitung das Problem nicht behoben hat, überprüfen Sie Ihre Firewall-Einstellungen. SQL Server arbeitet mit dynamischen Ports, weshalb die entsprechenden Ports geöffnet sein müssen, damit die Kommunikation zwischen Remote Desktop Manager und Ihrem SQL Server reibungslos funktioniert. Hinweise dazu, welche Ports freigegeben werden müssen, finden Sie im Abschnitt "Ports used by the Database Engine" in [Configure the Windows Firewall to allow SQL Server access](https://learn.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-ver16#ports-used-by-the-database-engine).

### Lösung 3

Wenn weiterhin Probleme mit Verbindungszeitüberschreitungen auftreten, könnte die Ursache mit dem SQL Listener oder Verfügbarkeitsgruppen zusammenhängen. Versuchen Sie in solchen Fällen, den Wert ***MultiSubnetFailover*** auf ***True*** zu setzen.

1. Gehen Sie in Remote Desktop Manager zu ***Datei – Datenquellen*** und bearbeiten Sie Ihre Microsoft SQL Server-Datenquelle, indem Sie auf das Symbol ***Datenquelle bearbeiten*** klicken.
2. Klicken Sie in der Registerkarte ***Erweitert*** auf ***Weitere Einstellungen***.
3. Suchen Sie nach der Einstellung MultiSubnetFailover und setzen Sie ihren Wert auf ***True***.

   <div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Es wird empfohlen, entweder <em><strong>Failover Partner</strong></em> oder <em><strong>MultiSubnetFailover</strong></em> zu verwenden, nicht beide gleichzeitig. Stellen Sie sicher, dass der Wert <em><strong>Failover Partner</strong></em> geleert ist.</p></div>
4. Klicken Sie auf ***OK*** und speichern Sie dann Ihre Änderungen.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Weitere Informationen finden Sie in diesem Microsoft-Artikel: <a href="https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/availability-groups/listener-connection-times-out">Timeout occurs when you connect to an Always On listener in multi-subnet environment</a>.</p></div>

### Lösung 4

[Probleme bei der Zertifikatsvalidierung](/rdm/de/knowledge-base/troubleshooting-articles/unable-to-connect-to-the-workspace.md).

### Sonstige mögliche Lösungen

Wenn die oben genannten Lösungen das Problem nicht behoben haben, finden Sie weitere mögliche Lösungen in den folgenden Microsoft-Artikeln:

* [Timeout expired messages when connecting to SQL Server](https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/timeout-expired-error)
* [A network-related or instance-specific error occurred while establishing a connection to SQL Server](https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection)

Kontaktieren Sie gerne [unser Kundensupport-Team](mailto:service@devolutions.net) für weitere Unterstützung.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/rdm/de/knowledge-base/troubleshooting-articles/sql-server-connection-timeout.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
