What is Transaction?
Answers were Sorted based on User's Feedback
Answer / sivasiva
A transaction in SQL (structured query language) is a
larger unit of database processing that contains one or
more database access operations like insertion ,deletion,
retrieval and modification operations.
These transaction are required to fulfil certain
characteristics and they are :
Atomicity: The transaction is either performed entirely or
not performed at all.
Isolation: The transaction should not be interfered by any
other transaction executing concurrently.
Durability: The changes made by the transaction should be
permanently committed in the database.
Consistency preservation: If the database was consistent
before the execution of the transaction .It should remain
consistent after the complete execution of that transaction.
There are two types of transactions: explicit and implicit
Explicit are those that need to be specified like : commit
and roll-back
Commit transaction signals that the transaction was
successfully executed and the changes/ updates (if any)
made by the transaction have been committed to the database
and these changes cannot be undone.
Roll-back signals that the transaction was not successfully
executed , and the changes/updates made by the transaction
have to be undone.
Implicit transactions are those that mark beginning and
end of the transaction, each statement like update,
delete , insert run within these implicit
transactions.,However, you can explicitly specify the
beginning and ending of the transaction by "begin
transaction" and "end transaction" statements respectively.
All the statements within these two boundaries will be
marked as one transaction.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / subba reddy
A transaction is a series of SQL data manipulation
statements that does a logical unit of work. Oracle
treats the series of SQL statements as a unit so that all
the changes brought about by the statements are
either committed (made permanent) or rolled back (undone)
at the same time. If your program fails in the
middle of a transaction, the database is automatically
restored to its former state
| Is This Answer Correct ? | 2 Yes | 0 No |
How to select some specific rows from a table in ms sql server?
Does sql server 2000 full-text search support clustering?
wt is mean by acid property? i know it is atomocity,consistency,isolation and durabulaty but wt is these mean and wt actions it's perform
What is difference between equi join and inner join?
How to check if stored procedure is running in sql server?
Delete duplicate rows without using rowid.
How to send email from database?
How to generate create table script on an existing table in ms sql server?
What is dbcc updateusage?
What are 3 ways to get a count of the number of records in a table?
Can you tell me some of the common replication dmv's and their use? : sql server replication
Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)