• Get Error when restoring database in Sql Server 2008 R2


         When I restored a database I got an error: “The backup set holds a backup of a database other than the existing database”. I was every confused because I have done this operation many times. It never got error before.

         When you encounter strange error, it’s the chance to learn new knowledge. So I search on the internet and find the solution.

    In the past times, I restored database with several steps:

    1. Created a new database with a name;

    2. Selected the database and restored from device;

    3. Selected the backup file in your computer;

    4. Selected “Overwrite the existing database”;

    5. Clicked “Ok” and it would be restored successfully;

         But now I can’t restore successfully with the same steps’ change some steps as follows:

    1. Select “Databases” and select restored database in the right menu; (You don’t need to create a new database)

    2. Select “Restore from device” and find the backup file in your computer.

    3. Input your database name on the textbox left behind “To database” label;(See the follow picture)

    4. Clicked “Ok” and it would be restored successfully;

    clip_image002

         These two ways seem have no different, but when I use the second way, the error doesn’t reappear. I still don’t know why, if someone know the true reason, please tell me.

  • 相关阅读:
    性能卓越的js模板引擎--artTemplate
    AngularJS学习笔记之依赖注入
    高性能的JavaScript库---Lodash
    如何阅读一本书
    我为什么写博客
    [cocos2d-x]深入--几个代表性的类 (续)
    [cocos2d-x]深入--几个代表性的类
    [cocos2dx]2.2到3.1(3.0)升级帮助
    [cocos2dx]利用NDK崩溃日志查找BUG
    IT技术团队管理-总结
  • 原文地址:https://www.cnblogs.com/xiaoxiangfeizi/p/3351798.html
Copyright © 2020-2023  润新知