School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -0,0 +1,26 @@
create or alter procedure write_and_rollback
as
begin
begin tran
update Cards set name = 'Test Dirty Reads' where hmy = 1
waitfor delay '00:00:05'
rollback tran
end
go
create or alter procedure read_multiple_times
as
begin
begin tran
select * from Cards where hmy = 1
waitfor delay '00:00:05'
select * from Cards where hmy = 1
waitfor delay '00:00:05'
select * from Cards where hmy = 1
commit tran
end
go
set transaction isolation level read uncommitted
exec read_multiple_times