Compare commits

..

No commits in common. "main" and "c2ed485d650e9c538a6b92fdfc2804fb755790cd" have entirely different histories.

2 changed files with 3 additions and 28 deletions

View File

@ -2,10 +2,9 @@
This repostiory contains examples which might be used to show/explain why and when deadlocks happen in MSSQL.
# How to
1. Create example tables using ddl-script.sql
2. Open two different SQL sessions.
3. In each session open one file.
4. Run SQL commands according to comments.
1. Open two different SQL sessions.
2. In each session open one file.
3. Run SQL commands according to comments.
For example - running Read Commited should look like:

View File

@ -1,24 +0,0 @@
CREATE TABLE Wycieczki
(
kraj VARCHAR(10),
cena MONEY
);
INSERT INTO
Wycieczki
VALUES
('Ateny', 1000),
('Bangkok', 3000);
CREATE TABLE Bilety
(
idBiletu int,
kraj VARCHAR(10),
l_osób int,
cena MONEY
);
INSERT INTO
Bilety
VALUES
(1, 'Ateny', 1, 1000);