Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. backup database not working

backup database not working

Scheduled Pinned Locked Moved Database
helpquestiondatabasetestingbeta-testing
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrBatra
    wrote on last edited by
    #1

    For few of us, its seems to be a simple question, I already have a solution for this... I don;t need solution, I need explanation. Problem: I'm trying to backup the database by selecting the database source, backup type = full, name the backup set, and leave the rest as default. The backup seems to be successful. The problem comes when I need to restore the backup database. I 've tried many times and a few different kinds of selection, all fails. I've selected the source for restore from device, that is the .bak file from backup folder and remains the rest of selection as default. Here is the error message I get: System.Data.SqlClient.SqlError: The backup set holds a backup of the database other than the existing 'testing' database. (Microsoft.SqlServer.Express.Smo) I know the solution to this: In Restore window-> Options tab, check "Force restore over existing database" I need why should I check force restore. Can some one please explain?

    G-U-R-U

    T H 2 Replies Last reply
    0
    • M MrBatra

      For few of us, its seems to be a simple question, I already have a solution for this... I don;t need solution, I need explanation. Problem: I'm trying to backup the database by selecting the database source, backup type = full, name the backup set, and leave the rest as default. The backup seems to be successful. The problem comes when I need to restore the backup database. I 've tried many times and a few different kinds of selection, all fails. I've selected the source for restore from device, that is the .bak file from backup folder and remains the rest of selection as default. Here is the error message I get: System.Data.SqlClient.SqlError: The backup set holds a backup of the database other than the existing 'testing' database. (Microsoft.SqlServer.Express.Smo) I know the solution to this: In Restore window-> Options tab, check "Force restore over existing database" I need why should I check force restore. Can some one please explain?

      G-U-R-U

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Why "Force restore over existing database"?[^]

      thatraja |Chennai|India|


      Brainbench certifications
      My Dad had a Heart Attack on this day so don't...

      M 1 Reply Last reply
      0
      • M MrBatra

        For few of us, its seems to be a simple question, I already have a solution for this... I don;t need solution, I need explanation. Problem: I'm trying to backup the database by selecting the database source, backup type = full, name the backup set, and leave the rest as default. The backup seems to be successful. The problem comes when I need to restore the backup database. I 've tried many times and a few different kinds of selection, all fails. I've selected the source for restore from device, that is the .bak file from backup folder and remains the rest of selection as default. Here is the error message I get: System.Data.SqlClient.SqlError: The backup set holds a backup of the database other than the existing 'testing' database. (Microsoft.SqlServer.Express.Smo) I know the solution to this: In Restore window-> Options tab, check "Force restore over existing database" I need why should I check force restore. Can some one please explain?

        G-U-R-U

        H Offline
        H Offline
        Hiren solanki
        wrote on last edited by
        #3

        In a simple file copy pasting scenario what happens ? If you're pasting file at the location where file with the same name exists there, They will ask you whether you want to overrite it ? Same happens with DB, If you're restoring DB that sets is already existed in DB then you need to override it rather then creating duplicate DBs. I hope you get your answer.

        Regards, Hiren.

        My Recent Article: - Way to know which control have raised a postback
        My Recent Tip/Trick: - The ?? Operator.

        M 1 Reply Last reply
        0
        • T thatraja

          Why "Force restore over existing database"?[^]

          thatraja |Chennai|India|


          Brainbench certifications
          My Dad had a Heart Attack on this day so don't...

          M Offline
          M Offline
          MrBatra
          wrote on last edited by
          #4

          As per the above mentioned link .... Force restore over existing database means if a database already exists with the same name that you are restoring, then overwrite it. If one doesn't exist, just create it. But for mine case, I don;t have any existing database and still I'm getting the error.

          G-U-R-U

          1 Reply Last reply
          0
          • H Hiren solanki

            In a simple file copy pasting scenario what happens ? If you're pasting file at the location where file with the same name exists there, They will ask you whether you want to overrite it ? Same happens with DB, If you're restoring DB that sets is already existed in DB then you need to override it rather then creating duplicate DBs. I hope you get your answer.

            Regards, Hiren.

            My Recent Article: - Way to know which control have raised a postback
            My Recent Tip/Trick: - The ?? Operator.

            M Offline
            M Offline
            MrBatra
            wrote on last edited by
            #5

            I agree with you. But in mine case, I don;t have any DB with same name. I just got a BAK file from some other server and tried to restore the same on another server.

            G-U-R-U

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups