Previously thoughtSqlserverA full backup only backs up database data and does not contain logs. In fact, this is an error. UseRestoreheaderonlyCan help us verify (MSDB.DBO.Backupset also contains the corresponding information).
Restore headeronlyReturns the result set that contains all backup header information of all backup sets on a specific backup device. The query result contains three columns:
Firstlsn |
Numeric (25, 0) |
The log serial number of the first log record in the backup set. |
Null |
Lastlsn |
Numeric (25, 0) |
The log serial number of the next log record after the backup set. |
Null |
Checkpointlsn |
Numeric (25, 0) |
Log number of the last checkpoint when the backup is created. |
Null |
The database starts to read data after the checkpoint. Some page data may have been changed during data reading, but the SQL server does not read the data again. In this way, the lsn of the changed page needs to be included, in this way, the log operation is re-applied to the database (redo/UNDO) during restoration ).
restoreheaderonly (TRANSACT-SQL ):
http://technet.microsoft.com/zh-cn/library/ms178536 (V = SQL .90 ). aspx