InterviewSolution
| 1. |
Define Transaction And Transaction Isolation Levels? |
|
Answer» Transaction A transaction is a set of operations that works as a single unit. The TRANSACTIONS can be CATEGORIZED into explicit, autocommit, and implicit transactions. Every transaction should follow four properties called the ACID properties i.e. atomicity, consistency, isolation, and durability. Atomicity Transaction ensures either modification is committed or not committed. Consistency The data should be in consistent state when transaction process is completed. This means that all related tables are updated. Isolation SQL server supports concurrency when mean that data can be access or shared by many USERS. A transaction works in isolation and doesn't allow other transaction to work concurrently on the same piece of data. Durability Data is permanent once transaction is completed and it can be recovered even if system fails. There are four transaction isolation levels:
Read committed isolation levels
Transaction A transaction is a set of operations that works as a single unit. The transactions can be categorized into explicit, autocommit, and implicit transactions. Every transaction should follow four properties called the ACID properties i.e. atomicity, consistency, isolation, and durability. Atomicity Transaction ensures either modification is committed or not committed. Consistency The data should be in consistent state when transaction process is completed. This means that all related tables are updated. Isolation SQL server supports concurrency when mean that data can be access or shared by many users. A transaction works in isolation and doesn't allow other transaction to work concurrently on the same piece of data. Durability Data is permanent once transaction is completed and it can be recovered even if system fails. There are four transaction isolation levels: Read committed isolation levels |
|