I wondered if SQL Server supports nested transactions?
I can see other questions similar.
Also - How do I know if I am in a nested transaction?
This may seem a strange question .. but ..
in SSMS I might have run the command BEGIN TRANSACTION
more than once by accident .. for example .. Will this mean that I need to run the COMMIT TRANSACTION
more than once to finalise the transaction?
I'm thinking nested transactions should generally be avoided.
SELECT
[Initial Assess - Sweating],
COUNT(*)
FROM
Clinical.SAASCaseCards
GROUP BY
[Initial Assess - Sweating]
BEGIN TRANSACTION;
UPDATE Clinical.SAASCaseCards
SET [Initial Assess - Sweating] = '1'
WHERE [Initial Assess - Sweating]= '01'
COMMIT TRANSACTION ;