What is a transaction and what are ACID properties?

Answer Posted / rahul mankumare

Transaction is a unit of program execution that access &
possibly update various data items.
Usually a transaction is initiated lay a user program
written in a high level data manipulation language or
programming language (for eg. sql c# and java) where it is
deliminated by statement or function call s of the from
begin transaction and end transaction
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 ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the collation?

640


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

549


What is bulkcopy in sql?

567


Differentiate between mongodb vs. Sql server?

595


Do you know what is openxml in sql server?

617






Explain what is raid and what are different types of raid levels?

539


What are the tool windows in sql server management studio? : sql server management studio

630


Can a table be created inside a trigger?

570


What are the new features in sql server 2016?

550


What is difference between temp table and cte?

545


What is Command line parameters in PLSQL.?

586


What is the maximum row of a size?

584


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

632


User wants only to display only pdf as export option in report manager. How to achieve this?

173


What is a partitioned view?

576