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
How to call stored procedure using http soap?
last function used in MS Access to convert sql what function will use in sql
Explain various data region available in ssrs with their use?
What is sql or structured query language?
What is trigger explain with program?
What are click through reports?
What is RAID? What are the different types of RAID configurations?
What is the minimum recommended amount of ram for sql server 2012 enterprise?
What is lock escalation? : sql server database administration
What is reportserver and reportservertempdb ?
What is sharding?
How data can be copied from one table to another table?
What is the difference between the application object and session object?
What are views used for?
Can we call stored procedure in trigger?