Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As I know that, READ COMMITTED is the default isolation level. But if I don't set isolation level within transaction. in that case, what would be the isolation level. Is it READ COMMITTED or anything else.

What I have tried:

BEGIN TRANSACTION MyTransaction
BEGIN TRY
UPDATE Account SET Debit=100 WHERE Name='John Cena'
UPDATE ContactInformation SET Mobile='1234567890' WHERE Name='The Rock'
COMMIT TRANSACTION MyTransaction
PRINT 'TRANSACTION SUCCESS'
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION MyTransaction
PRINT 'TRANSACTION FAILED'
END CATCH
Posted
Updated 5-Jun-20 9:21am
v2

1 solution

As you say, READ_COMMITTED is the default isolation level - and that means that unless you specify a level, the transaction will always be READ_COMMITTED.

That's what defaults are there for!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900