A transaction in a database management system terminates either when it is explicitly committed (making changes permanent) or when it is rolled back (undoing all changes). These are the two standard ways to end a transaction. Simply executing DML statements doesn't end a transaction - the database waits for an explicit COMMIT or ROLLBACK command.