What are explicit and implicit transactions?
Answers were Sorted based on User's Feedback
Answer / lara
When a connection is operating in implicit transaction mode
MS SQL automatically starts a new transaction after the
current transaction is committed or rolled back.Implicit
transaction mode generates a continuous chain of
transactions.
An explicit transaction is one in which you explicitly
define both the start and end of the transaction.A user has
to use the BEGIN TRANSACTION, COMMIT TRANSACTION, COMMIT
WORK, ROLLBACK TRANSACTION, or ROLLBACK WORK Transact-SQL
statements to define explicit transactions.
Is This Answer Correct ? | 24 Yes | 1 No |
Answer / vasudeva naik
Explicit transactions must be explicitly started with the
BEGIN TRAN statement, whereas no BEGIN TRAN is necessary to
start a multistatement transaction when in implicit
transaction mode.
Is This Answer Correct ? | 16 Yes | 2 No |
Answer / anton
Implicit transactions are used automatically ACID
properties,mean would be updated or none of them would.
Explicit transactions are started by using the BEGIN
TRANSACTION T-SQL command and are stopped by using the
COMMIT TRANSACTION or ROLLBACK TRANSACTION commands.
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / chintan
IMPLICIT TRANSACTION: When turned on by using "SET
IMPLICIT_TRANSACTION ON" during transaction you have to
issue 'COMMIT TRAN' command in order to commit transaction.
EXPLICIT TRANSACTION: By default in SQL Server when you
finish a transaction it is committed to the database.
Is This Answer Correct ? | 9 Yes | 22 No |
Explain try...catch with sql server?
After using delete statement in sql query to delete some records...to retrieve the deleted records we can get using rollback command but till that where it stores means particular location name i need....(after deleting and rollback )
3 Answers CarrizalSoft Technologies, iGate,
What is the use of =,==,=== operators?
Can you explain what are commit and rollback in sql?
Is it possible in sql table to have more than one foreign key?
What is lookup override?
What is Outter Join?
What are the advantages of using third-party tools?
Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Mention the differences between substr and charindex in sql server.
What are the different types of backups avaialabe in sql server 2005?
What is clustered primary key?