What is a transaction and what are ACID properties?

Answer Posted / pardeep jangra

A transaction is a unit of program execution that
accesses and possibly updates various data items.
! A transaction must see a consistent database.
! During transaction execution the database may be
inconsistent.
! When the transaction is committed, the database must
be consistent.
ACID PROPERTIES
Atomicity- requires that each transaction is "all or
nothing": if one part of the transaction fails, the entire
transaction fails, and the database state is left unchanged.
An atomic system must guarantee atomicity in each and every
situation, including power failures, errors, and crashes.
Consistency

The consistency- property ensures that any transaction will
bring the database from one valid state to another. Any data
written to the database must be valid according to all
defined rules, including but not limited to constraints,
cascades, triggers, and any combination thereof.
Isolation

Isolation- property ensures that the concurrent execution of
transactions results in a system state that could have been
obtained if transactions are executed serially i.e. one
after the other.[citation needed]
Durability

Durability- means that once a transaction has been
committed, it will remain so, even in the event of power
loss, crashes, or errors. In a relational database, for
instance, once a group of SQL statements execute, the
results need to be stored permanently (even if the database
crashes immediately thereafter).

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a view on an existing table in ms sql server?

595


What do you mean by a dependent functionality in a build?

661


What is the main purpose of having conversation group?

498


Does group by sort data?

516


What are the features of Embedded SQL

681






What is normalization according to you and explain its different levels?

527


What is the default schema of your login session in ms sql server?

593


Where is trigger in sql server?

545


What is 1nf normalization form?

601


What are the different types of indexes?

613


what are constraints? Explain different types of constraints? : Sql server database administration

506


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

603


What is the difference between mysql and mysqli?

585


How to define output parameters in stored procedures?

527


What are the drawbacks of reporting in ssrs?

108