`
hard-work
  • 浏览: 13708 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

SQL Server 2008备份和还原问题

阅读更多

今天,还原备份的sql server 2008数据库的时候,抛出了这样的错误。

error:the media set has 2 media families but only 1 are provided. all members must be provided。

 

找到一个帖子说明了这个问题。

 

I'm the PM that owns SQL backup.  I'll see if I can explain this clearly and help everyone out here.

 

This error message means that the original backup was done as a striped backup where the backup stream was split into two destination files.

When attempting to restore, you need to specify all of the same files which were used to take the backup.

 

Because this works very much like RAID1, we do not have one set of data on one file and another set of data on the other one, but rather the data is inerspersed between the two files, which is the behavior which gives optimum performace.  One of the unfortunate results of this is the fact that you cannot get any data out of a subset of the backup files used to create the backup.

 

The reason that you cannot do a backup adding on to one of these files is that the files themselves are initialized to understand that they are part x of a y-part backup.  If you specify only 1 file, it doesn't fit.

You can always perform a backup by specifying a new backup file, and using WITH INIT.

 

If you don't need to stripe the backups across multiple files for performance reasons, then I'd suggest going with a single destination for management simplicity.

 

So, the simple version is:

If you back up to 2 files, you must specify 2 files to restore from.  If you back up to 5 files, you must specify 5 files to restore from, etc.

 

You cannot restore any data from less than the full set of files used for the backup.  This isn't like RAID 5 where we can synthesize missing data, nor is it a continuation volume, where we could restore up to the missing bit.

大概的意思是,在备份的时候,将数据写到了2个不同的文件中,那么在还原的时候同时制定这两个文件就可以了。

 帖子的链接:http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/abf50e00-c9b0-4809-9e61-43ed8a53e968/

 

分享到:
评论

相关推荐

    服务器SQL Server 自动定时备份和还原的工具

    还原数据库具有还原到新库和原库的功能,工具已兼具开机自动启动的功能,备份功能只针对本机服务器,不能备份还原远程数据库。工具基本为绿色软件,有.net的windows系统,基本无需任何安装,直接使用。

    SQLServer2008R2数据库备份与还原操作文档.pdf

    SQLServer2008R2数据库备份与还原操作文档.pdf

    SQLServer数据库的备份和还原详解

    #### 二、使用SQL Server Management Studio备份和还原数据库 ##### 2.1 备份数据库 备份数据库的基本步骤如下: 1. 在SQL Server Management Studio中打开目标数据库,从右键菜单中选择“所有任务 -> 备份数据库...

    SQL Server 数据库备份和还原认识和总结(二)

    通过《SQL Server 数据库备份和还原认识和总结(一)》,相信您对数据备份和还原有了一个更深入的认识,在上文中我没有对事务日志做剖析,在此推荐宋沄剑的文章,对事务日志做了比较详细的讲解://...

    SqlServer数据库的备份与还原

    SqlServer数据库的备份与还原是数据库管理中的核心操作,它们确保了数据库的稳定性和数据的安全性。在SqlServer2017中,可以采用手动备份和自动备份两种方式进行数据库的备份,同时在必要时进行还原操作。 首先,...

    批处理(bat)实现SQLServer数据库备份与还原

    ### 批处理(BAT)实现SQL Server数据库备份与还原 #### 一、概述 在日常的数据库维护工作中,定期对数据库进行备份是非常重要的一个环节,它能够帮助我们防止因硬件故障、软件错误或其他不可预见的情况导致的数据...

    将Sql Server 2000中的数据库备份文件还原到sql2005中

    将Sql Server 2000中的数据库备份文件还原到Sql Server 2005中是一个常见的问题。在这个过程中,我们需要了解Sql Server 2000和Sql Server 2005之间的差异,以便正确地还原数据库备份文件。下面是相关的知识点: 1....

    SQLSERVER2000备份和还原说明

    ### SQL Server 2000 数据库备份与还原详解 #### 一、SQL Server 2000数据库备份 在进行任何重要的数据操作之前,备份是必不可少的一个环节。本章节将详细介绍如何使用SQL Server 2000进行数据库备份。 ##### 1.1...

    sqlserver2008远程备份、还原和压缩日志文件

    在IT行业中,数据库管理是至关重要的任务之一,尤其是在...以上就是关于“sqlserver2008远程备份、还原和压缩日志文件”的知识点,希望对您有所帮助。在实际操作中,可根据项目需求和团队技术栈选择合适的方法和技术。

    SQLServer数据库备份再还原之后登录名丢失解决方法

    ### SQL Server 数据库备份后登录名丢失问题及解决方法 #### 背景与问题概述 在进行SQL Server数据库的备份与恢复操作时,经常会出现一个棘手的问题:原本数据库中的登录名在恢复到另一台服务器后消失不见,导致...

    sqlserver2014做数据还原

    本文将详细介绍如何使用SQL Server 2014进行数据库还原,并针对一些常见问题提供解决方案。 #### 一、SQL Server 2014 数据库还原的基础概念 在开始之前,我们首先了解几个关键的概念: - **备份(Backup)**:...

    SQL-Server-2008-数据库还原到SQL-Server-2012.docx

    SQL Server 2008 是一个稳定和可靠的数据库管理系统,但随着时间的推移,新的技术和功能被引入,SQL Server 2012 成为一个更好的选择。因此,数据库迁移从 SQL Server 2008 到 SQL Server 2012 成为一个非常重要的...

    SqlServer2000数据库备份还原工具

    本文将详细阐述如何使用SQL Server 2000进行数据库备份和还原,并介绍一款名为"数据库备份还原.exe"的实用工具,以简化这一过程。 一、SQL Server 2000数据库备份 1. 备份类型: - 完全备份:备份整个数据库,...

    SQL Server数据库备份及还原方法

    以下是 SQL Server 2000 和 SQL Server 2008 两个版本下的数据库备份和还原方法。 备份数据库 备份数据库是数据库管理员和开发者需要掌握的重要技术。 SQL Server 数据库的备份比较简单,两种版本的备份方法差别...

    c# asp.net实现sql server数据库备份

    首先,需要在项目中引用`Microsoft.SqlServer.Smo`和`Microsoft.SqlServer.ConnectionInfo`库。 以下是一个简单的C#代码示例,展示如何使用SMO创建一个完整数据库备份: ```csharp using Microsoft.SqlServer....

    sql server的备份与还原

    - 引用`System.Data.SqlClient`和`Microsoft.SqlServer.Smo`命名空间。 - 创建`SqlConnection`对象连接到SQL Server。 - 使用`Server`类的`Backup`方法执行备份,设置`BackupActionType`(完整、差异或日志)。 ...

    sqlserver还原备份数据库以及清理日志文件

    ### SQL Server 还原备份与日志管理 #### 一、SQL Server 数据库备份与还原基础知识 在讨论具体的步骤之前,我们先了解一些基础概念。 **1.1 备份类型** - **完整备份(Full Backup)**:备份整个数据库的所有...

    sql server 2008备份还原

    sql server 2008备份还原教程

    sql2008 R2备份和还原

    ### SQL Server 2008 R2备份与还原详尽指南 #### 一、数据库备份步骤详解 在SQL Server 2008 R2中,数据库的备份是确保数据安全的关键步骤之一。以下是对备份过程的详细说明: 1. **打开SQL Server Management ...

Global site tag (gtag.js) - Google Analytics