SQL Server isolation levels are used to define the degree to which one transaction must be isolated from resource or data modifications made by other concurrent transactions. The different Isolation Levels are:
4. Serializable
5. Snapshot
Read Committed
is the default isolation level. However, it can be changed from Query Window as
well as Management Studio Tools.
Execute below scripts to create table and insert some records to use in examples for each isolation.
begin
DROP TABLE Product
end
create table Product
(ProdID int,
ProdName
Varchar(50),
ProdPrice
int
)
insert into Product(ProdID,ProdName,ProdPrice)
values
( 1,'Black Shirt',1000),
( 2,'White Suits',2000),
( 3,'Red Kurta',700),
( 4,'Half Shirt',1700)
Click on Below links to see the Different types of isolation levels with example
No comments:
Post a Comment