In SQL Server, I have written stored procedures, functions etc but I do not have good knowledge on locking and isolation.
I have this stored procedure where I did all my