Compare commits
No commits in common. "main" and "c2ed485d650e9c538a6b92fdfc2804fb755790cd" have entirely different histories.
main
...
c2ed485d65
@ -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:
|
||||
|
||||
|
@ -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);
|
Loading…
Reference in New Issue
Block a user