About 3,340,000 results
Open links in new tab
  1. sql server - close/kill transaction - Stack Overflow

    If you want to see all SPIDs and blocked as tables, you should use the following query. SELECT spid, blocked,[dbid],last_batch,open_tran FROM master.sys.sysprocesses WHERE open_tran <> 0 Share

  2. sql server - What happens to an open transaction when the …

    Oct 20, 2022 · Would the transaction be open till someone manually rolls it back or does SQL server rollback any uncommitted transactions when a window is closed? Also, how do I find out all the open transactions in a database across any session?

  3. restore tabs after reopening SQL Server Management Studio

    Oct 10, 2023 · When you close you session (on purpose or if the session crashes), all previously open tabs will launch automatically when SSMS is reopened. If you choose not to automatically launch these tabs, they’re still available via the Tab History option.

  4. Recovering an accidentally closed query (provided you ran it)

    Jan 27, 2017 · As it turns out, SQL Server keeps track of queries that got executed, and you can pull the info from the system tables using the following query: execquery.last_execution_time AS [Date Time] , execsql.text AS [Script] FROM . sys.dm_exec_query_stats AS execquery. CROSS APPLY . sys.dm_exec_sql_text(execquery.sql_handle) AS execsql. ORDER BY .

  5. How to Recover Recently Closed Tabs in SSMS Using SQL Complete

    Aug 23, 2023 · The same idea is relevant to SQL Server Management Studio; the ability to recover recently closed tabs and documents in SSMS is simply vital. In this article, we will explore how to perform recovery using the built-in features of SSMS as well as third-party solutions like dbForge SQL Complete.

  6. sql server - Does a killed query continue rolling back after closing ...

    Dec 31, 2016 · Closing the connection to SQL Server, whether that is a connection utilizing SSMS or some other application causes the rollback of any currently active transaction(s) created by that connection. This includes any implicit transactions, and operations such as RESTORE DATABASE , etc.

  7. SSMS Open Recently Closed Tab - MSSQLTips.com - SQL Server

    May 16, 2022 · All you have to do is reopen SSMS and you’re presented with the ‘Microsoft SQL Server Management Studio Recovered Files’ window. Simply clicking ‘Recover Select Files’ will open a temporarily saved copy of the Query window. Here’s the saved script including formatting.

  8. Getting Our Query Back After SSMS Crashed or We Closed ... - SQL Undercover

    Sep 16, 2019 · Here’s a quick one for you, have you ever spent all day working on some query or another only for SSMS to crash or for you to accidentally close the tab that you’re working on without saving the query?

  9. Find and Delete Incomplete Open Transactions in SQL Server - Devart Blog

    Apr 26, 2024 · SQL Server provides an in-built method of defining if there are any open transactions, the DBCC OPENTRAN command. If any open transactions have been detected, SSMS will return the information about them as “oldest active transaction,” which you can see in the screenshot below.

  10. SQL Server 2005 Management Studio - Stack Overflow

    Nov 4, 2009 · I was able to recover a query I was working on after accidentally closing the tab. If you actually ran the query, it should be in SQL Server's query cache. Query the query cache and order the results by creation date.

  11. Some results have been removed
Refresh