Answer Posted / 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 |
Post New Answer View All Answers
How to receive returning result from a query?
What are sql azure firewall rules?
What is a primary key?
What are horizontal and vertical scaling?
In case you have filters in your report, when filters will be applied in cached report instance?
What happens if you delete a table that is used by a view?
List out what other servers you can use with ssrs?
What are the default system databases in sql server 2000?
Give a example to search fr a string in all stored procedure in sql server.
Write a query to find 5th highest amount paid from the customer table.
what is the system function to get the current user's user id? : Sql server database administration
How to test odbc dsn connection settings?
How can you find out which stored procedures are recompiling?
what authentication modes does sql server support? : Sql server database administration
Can we call future method from trigger?