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 ssrs maintain security?
What are alternate keys?
What is filtered index?
Would you store your query in a ssrs report or a database server? State the reason why?
What is difference between stored procedure and user defined function?
What is the guest user account in sql server? What login is it mapped to it? : sql server security
What are the hotfixes and patches in sql server?
How to use clusters?
What is sub query and its properties?
Explain ms sql server reporting services vs crystal reports?
Explain features and concepts of analysis services?
Explain what is public role in sql server?
How to provide default values to stored procedure parameters?
What is the difference between dropping a database and taking a database offline?
what is the difference between openrowset and openquery?