2

I’m looking for an option to explicitly commit/rollback every query executed in SSMS without the need to start the transaction explicitly. By default SSMS auto commits leaving no option to rollback.

kalitsov
  • 1,319
  • 3
  • 20
  • 33

1 Answers1

10

You can SET IMPLICIT_TRANSACTIONS ON in a query window.

If you set this in the Query/Query Options menu it will be set just for the current query. If you set this in the Tools/Options/Query Execution/SQL Server/ANSI menu it will be the default for all new queries.

enter image description here

David Browne - Microsoft
  • 80,331
  • 6
  • 39
  • 67