What is a transaction and what are ACID properties?

Answer Posted / pravesh

A transaction is a sequence of sql Operations(commands),
work as single atomic unit of work. To be qualify
as "Transaction" , this sequence of operations must satisfy
4 properties , which is knwon as ACID test.

A(Atomicity):-The sequence of operations must be atomic,
either all or no operations are performed.

C(Consistency):- When completed, the sequence of operations
must leave data in consistent mode. All the defined
relations/constraints must me Maintained.

I(Isolation): A Transaction must be isolated from all other
transactions. A transaction sees the data defore the
operations are performed , or after all the operations has
performed, it can't see the data in between.

D(Durability): All oprtaions must be permanently placed on
the system. Even in the event of system failure , all the
operations must be exhibit.

Is This Answer Correct ?    309 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain foreign key in sql server?

761


Why should we go for stored procedures? Why not direct queries?

764


how many clustered indexes can be created on a table? : Sql server database administration

790


Tell me something about security and sql azure?

112


What is the difference between osql and query analyzer?

738


What is a cursor, index in sql?

795


What are the types of indexes?

781


How do you check sql server is up and running?

705


What is data block and how to define data block size?

794


What is the use of toad or sqldbx.?

898


How to list all stored procedures in the current database using ms sql server?

831


What is dknf in normalization form?

752


Who developed sql server?

702


What is a periodical index?

663


What is history table in sql server?

676