SQL Server 数据库完整备份不只是备份数据还有日志
以前认为SQL Server完整备份只是备份数据库的数据而不包含日志,其实这是错误的。使用RESTOREHEADERONLY可以帮我们验证(msdb.db
以前认为SQL Server完整备份只是备份数据库的数据而不包含日志,其实这是错误的。使用RESTOREHEADERONLY可以帮我们验证(msdb.dbo.backupset也包含相应的信息)。
RESTORE HEADERONLY回包含特定备份设备上所有备份集的所有备份标头信息的结果集。查询结果包含三列:
FirstLSN
numeric(25,0)
备份集中第一个日志记录的日志序列号。
NULL
LastLSN
numeric(25,0)
备份集之后的下一条日志记录的日志序列号。
NULL
CheckpointLSN
numeric(25,0)
创建备份时最后一个检查点的日志序号。
NULL
数据库在CHECKPOINT之后开始读数据,,读数据过程中可能有些PAGE数据已经被更改,但是SQL SERVER不会重新读一次,这样就需要包含这些更改PAGE的LSN,从而在还原的时候将日志操作重新应用到数据库(REDO/UNDO)。
RESTOREHEADERONLY (Transact-SQL): (v=sql.90).aspx

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Microsoft SQL Server is a relational database management system launched by Microsoft. It is a comprehensive database platform that uses integrated business intelligence (BI) tools to provide enterprise-level data management. It is easy to use, has good scalability, and has a high degree of integration with related software. High advantages. The SQL Server database engine provides more secure and reliable storage functions for relational data and structured data, allowing users to build and manage highly available and high-performance data applications for business.

SQLServer or MySQL? The latest research reveals the best database selection. In recent years, with the rapid development of the Internet and big data, database selection has become an important issue faced by enterprises and developers. Among many databases, SQL Server and MySQL, as the two most common and widely used relational databases, are highly controversial. So, between SQLServer and MySQL, which one should you choose? The latest research sheds light on this problem for us. First, let

With the popularity of the Internet, website and application development has become the main business of many companies and individuals. PHP and SQLServer database are two very important tools. PHP is a server-side scripting language that can be used to develop dynamic websites; SQL Server is a relational database management system developed by Microsoft and has a wide range of application scenarios. In this article, we will discuss the development of PHP and SQL Server, as well as their advantages, disadvantages and application methods. First, let's

Introduction to how to use PDO to connect to a Microsoft SQL Server database: PDO (PHPDataObjects) is a unified interface for accessing databases provided by PHP. It provides many advantages, such as implementing an abstraction layer of the database and making it easy to switch between different database types without modifying a large amount of code. This article will introduce how to use PDO to connect to a Microsoft SQL Server database and provide some related code examples. step

In web development, the combination of PHP and MySQL is very common. However, in some cases, we need to connect to other types of databases, such as SQL Server. In this article, we will cover five different ways to connect to SQL Server using PHP.

SQL Server vs. MySQL: Which database is more suitable for high availability architecture? In today's data-driven world, high availability is one of the necessities for building reliable and stable systems. As the core component of data storage and management, the database's high availability is crucial to the business operation of the enterprise. Among the many databases, SQLServer and MySQL are common choices. So in terms of high availability architecture, which database is more suitable? This article will compare the two and give some suggestions.

With the continuous development of the Internet, database selection has become increasingly important. Among the many databases, SQLServer and MySQL are two high-profile options. SQLServer is a relational database management system developed by Microsoft, while MySQL is an open source relational database management system. So how to choose the best database solution between SQLServer and MySQL? First, we can compare these two databases in terms of performance. SQLServer is processing

SQLServer vs. MySQL: Who will take the throne in the database field? With the rapid development of the information age, databases have become an indispensable and important component in various industries. In the database field, there are two dominant giants, SQLServer and MySQL. The competition between them is not only a technical competition, but also a competition for market share and user reputation. So, what are the differences, advantages and disadvantages between the two database management systems SQLServer and MySQL? let us
