Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 860157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:46:32+00:00 2026-05-15T08:46:32+00:00

I am trying to upgrade from a server running SqlServer2005 (no service packs) to

  • 0

I am trying to upgrade from a server running SqlServer2005 (no service packs) to a server running SqlServer2005 service pack 3.

I am trying to copy the databases from one to another by doing a backup on one, then a restore on the other.

I am using ssms.

When I try to restore a backup of, call it DbName, created on the first server, onto the second server (I created a db DbName on the second server) I get the error message:

backup set holds a backup of a database other than the existing ‘DbName’ database

What’s going on here and how do I fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:46:33+00:00Added an answer on May 15, 2026 at 8:46 am

    If you created a database named DbName and you are trying to apply a backup of a different database (also named DbName) from the first server, then you will get the error that you are trying to back up a different database. This prevents mistakes where you would accidentally replace a database with the the wrong backup content.

    There are two solutions, both trivial:

    • use the WITH REPLACE option of the RESTORE command, so that it replaces the database content with the different database backup set:

      Specifies that SQL Server should
      create the specified database and its
      related files even if another database
      already exists with the same name. In
      such a case, the existing database is
      deleted.

    • explicitly drop the existing database before the RESTORE operation.

    SSMS has a special wizard that does that: right click on database, Tasks/Copy Database... but I much rather do it manually with straight T-SQL commands.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to upgrade from PHP 5.2.x to 5.3.2 on my server. Problem is,
I'm currently trying to upgrade our build server at work, going from having no
I'm trying to upgrade a database from a SQL Server 2000 instance to a
I've been trying to upgrade Nant from 0.86-beta1 to 0.92 in my build server,
I trying to upgrade from OrbeonForms version 3.8 to 3.9. I'm using PriorityResourceManagerFactory as
I'm trying to upgrade from Hibernate 3.6.5 to 4.0 (and from Spring 3.0.5 to
I'm trying to upgrade my Node application from 0.4 to 0.6 along with all
I'm trying to upgrade the FFMpeg source used with one of our projects but
I'm trying to upgrade the version of my birt-viewer on my Tomcat server, but
I'm trying to upgrade to Hibernate 3.5.3-FINAL. When running my unit tests, I now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.