Transactions That Drop a Table or Index
Once the database server drops a table or index from a database, it cannot roll back that drop operation. If a transaction contains a DROP TABLE or DROP INDEX statement, the database server handles this transaction as follows:
- The database server completes all the other parts of the transaction and writes the relevant logical-log records.
- The database server writes a BEGCOM record to the logical log and the records associated with the DROP TABLE or DROP INDEX (DINDEX, for example).
- The database server writes a COMMIT record.
If the transaction is terminated unexpectedly after the database server writes the BEGCOM record to the logical log, the database server rolls forward this transaction during recovery because it cannot roll back the drop operation.