Answer Posted / phani kiran sai
Isolation levels in SQL SERVER
1. READ UNCOMMITTED isolation level.
This kind of isolation level is used when we have the most
need for HIGHER CONCURRENCY.
Limitations:
Dirty pages
Lost updates
Phantom reads
Non-repeatable reads.
2. READ COMMITTED isolation level.
This is default level set in SQL SERVER. It prevents
transactions to read data if some other transaction is doing
some update operation on the data as a result eliminating
dirty reads.
It prevents reading of uncommitted data.
Limitations:
Low level of concurrency
Lost updates
Advantages:
Eliminates Dirty reads.
3. REPEATABLE READ isolation level.
It does not release the shared lock once the transaction
starts for reading data.
Transaction cannot read data that is modified by other
transaction and not committed.
Limitations:
Lower concurrency
Phantom reads
Advantages:
Eliminates Dirty Reads
Eliminates Lost updates
Eliminates Non-repeatable reads.
4. SERIALIZABLE isolation level.
This is the highest level of isolation, as a result a very
low concurrency rate.
Can not read data if other transaction are performing update
operations on data that is not committed yet.
No other transaction can perform update operation until
current transaction completes its read operation.
It performs RANGE LOCK based on filters used to get the data
i.e it locks current records and also the new records that
fall under current filter condition.
Limitation:
Low concurrency
Advantages:
Eliminates Dirty reads
Eliminates Lost updates
Eliminates Non-repeatable reads
Eliminates Phantom reads
5. SNAPSHOT isolation level.
It implements ROW VERSIONING to isolate data for each
transaction i.e it will keep separate version fo reach
modified row in tempdb.
Limitation:
Low performance due to versioning in tempdb.
Advantage:
Eliminates Dirty reads
Eliminates Lost updates
Eliminates Non-repeatable reads
Allows multiple updates by versioning.
6. CHAOS isolation level.
Same as READ UNCOMMITTED
Permits viewing uncommitted changes of other transaction
Rollback is not supported.
7. UNSPECIFIED isolation level.
When an isolation level of any transaction cannot be
determined, it is knows as unspecified isolation level.
ODBCTransaction, when an user forgets to set an isolation
level for such transactions, it will execute according to
isolation level associated by ODBC driver
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is an indice?
How to retrieve error messages using odbc_errormsg()?
Why do we need different type of parameter?
How do you delete duplicate rows in sql server?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
How to find out the list schema name and table name for the database?
Would you store your query in a ssrs report or a database server? State the reason why?
How to rebuild indexes with alter index ... Rebuild?
do you know how to configure db2 side of the application? : Sql server database administration
What are the types of user defined functions in sql server?
How to query multiple tables jointly?
What are the lambda triggers?
Sql server reporting services vs. Crystal reports.
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
What is provisioning, billing and metering, and connection routing concepts in the service layer?