Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet351/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   347   348   349   350   351   352   353   354   ...   443
Bog'liq
BookSQL

 

CHAPTER 9

 

Transactions and Concurrency



 

 313

Unlike in READ UNCOMMITTED, in the READ COMMITTED isolation level, you don’t get dirty 

reads. Instead, you can only read committed changes.

In terms of the duration of locks, in the READ COMMITTED isolation level, a reader only holds the 

shared lock until it is done with the resource. It doesn’t keep the lock until the end of the transaction; 

in fact, it doesn’t even keep the lock until the end of the statement. This means that in between two 

reads of the same data resource in the same transaction, no lock is held on the resource. Therefore, 

another transaction can modify the resource in between those two reads, and the reader might get 

different values in each read. This phenomenon is called non-repeatable reads or inconsistent analy-

sis. For many applications, this phenomenon is acceptable, but for some it isn’t.

When you are done, run the following code for cleanup in any of the open connections.

UPDATE Production.Products 

  SET unitprice = 19.00 

WHERE productid = 2;




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   347   348   349   350   351   352   353   354   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish