问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/50542896/turn-off-auto-committing-in-sql-server-management-studio-ssms