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
Explain the collation?
Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication
What is bulkcopy in sql?
Differentiate between mongodb vs. Sql server?
Do you know what is openxml in sql server?
Explain what is raid and what are different types of raid levels?
What are the tool windows in sql server management studio? : sql server management studio
Can a table be created inside a trigger?
What are the new features in sql server 2016?
What is difference between temp table and cte?
What is Command line parameters in PLSQL.?
What is the maximum row of a size?
What are the new features in SQL Server 2005 when compared to SQL Server 2000?
User wants only to display only pdf as export option in report manager. How to achieve this?
What is a partitioned view?