You can set implicit transactions
in SQL-Server Managemenet Studio. Therefore you have to change the default option from off
to on
here:
- Tools
- Options
- Query Execution
- SQL Server
- ANSI
- SET IMPLICIT_TRANSACTIONS
Here is an image:
Domanda
I tried to search for a previous answer but the most similar is on a completely different question.
On TOAD for Oracle when I press F5 on an update I still have to choose if I want to commit or rollback.
On SSMS the commit is automatic.
Can I configure it to the need for an explicit commit?
EDIT
I've found that my question has got an exact response here:
Soluzione
You can set implicit transactions
in SQL-Server Managemenet Studio. Therefore you have to change the default option from off
to on
here:
Here is an image:
Altri suggerimenti
Put BEGIN TRANSACTION
at the top of your script.
Or use SET IMPLICIT_TRANSACTIONS ON
(courtesy of How do you set autocommit in an SQL Server session?)