How to overwrite existing database in sql server


  1. Log onto SQL Server Management Studio
  2. Navigate to the database you wish to restore.
  3. Right Click > Tasks > Restore > Database.
  4. Once on the General tab set the source to Device > Select Backup Device > Add > Navigate to the .bak file you're restoring to.
  5. Ensure the Destination Database is the correct one.
  6. Select the Options tab.
  7. Check Overwrite the existing database (WITH REPLACE) and Close existing connections to destination database.
  8. Uncheck Take Tail-Log Backup Before Restore.
  9. Click OK.

Comments

  1. Replies
    1. Thanks for your valuable feedback and please subscribe my blog for more updates.

      Delete

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Restore of database 'DataBase_Name' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

Cannot convert "Column" between a unicode and a non-unicode string data types in SSIS