adspace


Explain what are commit and rollback in sql?

Answer Posted / Pankaj Yadav

In SQL, COMMIT and ROLLBACK are database transaction management commands. COMMIT confirms the changes made during a transaction and saves them to the database permanently. ROLLBACK undoes all changes made during a transaction, effectively reverting the database back to its state before the transaction began.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why and when do stored procedure recompile?

1060


How do I start sql server 2017?

1015


How can you append an identity column to a temporary table?

1070


When should you use an instead of trigger?

1052


What is clustered index

1086


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1299


Explain “row_number()” in sql server with an example?

1079


What is acid mean in sql server?

1245


What is the difference between for xml raw and for xml auto?

1117


What are the source of constraints?

1009


What are the different SQL Server Versions you have worked on?

1079


How to connect php with different port numbers?

1189


Is it possible to have clustered index on separate drive from original table location?

1040


How to convert numeric expression data types using the cast() function?

1149


What is the primary use of the model database?

1149