简体   繁体   中英

Transaction Log in Sql Server

对于DDL或DML哪些语句,事务日志得到维护,为什么?

The transaction log is used to record information on each of the transactions that have occurred. You can use it to be able to roll back transactions, or in the case of a database recovery operation you can restore from a backup and roll forward using the recent transaction log files to re-apply any changes that have been made to the database.

Here is a helpful article that talks about it in a bit more detail.

It's maintained for all DML and DDL operations, and the main purpose is to ensure the ACID properties of a database: http://en.wikipedia.org/wiki/ACID

However, auditing and recovery possibilities via the transaction log are possible too, but as an effect of its design which follows ACID

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM