170 Views
While learning query tuning topics, I got a chance to understand anatomy of data page and different types and levels of Index pages. This learning helped me to understand concepts better and to give better performance tuning solutions later. This is my...
I also like to know how transactions are coordinated. I am aware of two-phase commits. There is a PREPARE and COMMIT phase. But, I do not know what really happens in the PREPARE phase, and what happens in a COMMIT phase. If a COMMIT phase fails because of a hardware error, what really happens to the entire transaction?
I think the answer is "it depends" because it depends on what fails, when it fails, and what the recovery settings are on the database.