Beginning SQL

Beginning SQL Beginning SQL

marjan.fesb.hr
from marjan.fesb.hr More from this publisher
20.07.2013 Views

Figure 11-5 Begin Transaction Delete Update Save Transaction Insert Save Transaction Update Roll back To B Commit Database The next section discusses the log file, the key to being able to perform a rollback. A transaction log is generally a text file that is written outside of the database, usually on a completely different physical drive. All potential changes to the database are written to the log file, and then that file is used to actually write the data changes back into the database when a COMMIT is encountered. Should a catastrophic failure occur, such as an abrupt shutdown caused by power loss, the log file holds all changes to that point in time. A B Transactions 311

Figure 11-5<br />

Begin<br />

Transaction<br />

Delete<br />

Update<br />

Save<br />

Transaction<br />

Insert<br />

Save<br />

Transaction<br />

Update<br />

Roll back<br />

To B<br />

Commit<br />

Database<br />

The next section discusses the log file, the key to being able to perform a rollback. A transaction log is<br />

generally a text file that is written outside of the database, usually on a completely different physical<br />

drive. All potential changes to the database are written to the log file, and then that file is used to actually<br />

write the data changes back into the database when a COMMIT is encountered. Should a catastrophic<br />

failure occur, such as an abrupt shutdown caused by power loss, the log file holds all changes to that<br />

point in time.<br />

A<br />

B<br />

Transactions<br />

311

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!