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
What is sql sandbox in sql server?
Explain sql server authentication modes?
What is the sql server 2000 version number?
What is the contrast between sql and mysql?
What is log shipping?
What is the difference between count () and rowcount ()?
what happens on checkpoint? : Sql server database administration
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
What do you understand by a stored procedure?
What is SQL Azure Fabric?
What is the security principal at the database level that represents your session?
What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration
Can we return Data from 4(more than 1) tables in stored procedure?
What is resource governor in sql server?
What is 5nf in normalization form?