Answer accepted by question author
You can configure your queries as SQL Server Agent Jobs, which allows them to run in the background without being tied to your RDP session. Schedule tasks using SQL Server Agent
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a few queries that I need to run in SQL Server Management Studio that will take a VERY long time to complete, however, the SQL server is in an enclave with VERY aggressive timeouts for RDP sessions. This means that the RDP session times out/logs off the user before the SQL query can complete. Is there a way to start a query in SSMS and have it run in the background or otherwise run it without having to worry about the RDP session being disconnected?
Answer accepted by question author
You can configure your queries as SQL Server Agent Jobs, which allows them to run in the background without being tied to your RDP session. Schedule tasks using SQL Server Agent