What is a transaction and what are ACID properties?

Answer Posted / archana

A transaction is an atomic unit of work that must be
completed in its entirety.The transaction succeeds if it
committed and fails if it is aborted.Transactions have four
essential properties:atomicity,consistency,isolation, and
durability(known as the ACID properties).

Atomicity:The work cannot be broken into smaller
parts.Although a transaction might contain many SQL
statements,it must be run as all-or-nothing
proposition,which means that,if a transaction is only
partially complete when an error occurs,the work revertss
to its state prior to the start of the transaction.

Consistency:A transaction must operate on a consistent view
of the data and also leave the data in a consistency
state.Any work in progress must not be visible to other
transactions until the transaction has been committed.

Isolation:A transaction should appear to be running by
itself,the effects of other ongoing transactions must be
invisible to this transaction,and the effects of this
transaction must be invisible to other ongoing transaction.

Durability:When the transaction is committed,it must be
persisted so it is not lost in the event of a power
failure.Only committed transaction are recovered during
power-up and crash recovery;uncommitted work is roll back.

Is This Answer Correct ?    72 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between commit and rollback when used in transactions?

576


What is a cursor, index in sql?

668


What are various ways to enhance the ssrs report?

609


What is merge statement?

699


How to transfer a table from one schema to another?

640






What are points to remember while using the fillfactor argument?

638


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

556


How would you choose between a clustered and a non-clustered index?

624


Explain activity monitors

706


How you provide security to cube? : sql server analysis services, ssas

636


You want to implement the one-to-one relationship while designing tables. How would you do it?

619


What is the benefit of normalization?

687


Does dbcc checkdb requires db to be in single_user mode? : sql server database administration

604


What is a non equi join?

641


What is function of ROLLUP ?

728