Sql server® 2012 t-sql fundamentals


-1 In this exercise, you will practice using the READ UNCOMMITTED isolation level. 2-1a



Download 10,93 Mb.
Pdf ko'rish
bet363/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   359   360   361   362   363   364   365   366   ...   443
Bog'liq
BookSQL

2-1

In this exercise, you will practice using the READ UNCOMMITTED isolation level.



2-1a

Open two new connections. (This exercise will refer to them as Connection 1 and Connection 2.)

www.it-ebooks.info



 

CHAPTER 9

 

Transactions and Concurrency



 

 329

2-1b

Run the following code in Connection 1 to update rows in Sales.OrderDetails and query it.

BEGIN TRAN; 

 

  UPDATE Sales.OrderDetails 



    SET discount += 0.05 

  WHERE orderid = 10249; 

 

  SELECT orderid, productid, unitprice, qty, discount 



  FROM Sales.OrderDetails 

  WHERE orderid = 10249;



2-1c

Run the following code in Connection 2 to set the isolation level to READ UNCOMMITTED and query 



Sales.OrderDetails.

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; 

 

SELECT orderid, productid, unitprice, qty, discount 



FROM Sales.OrderDetails 

WHERE orderid = 10249;

Notice that you get the modified, uncommitted version of the rows.


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   359   360   361   362   363   364   365   366   ...   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