Skip to content

FIXED MSSQL Error 3154 – The backup set holds a backup of a database other than the existing database

Advertisement

Using SQL Query Window:

Use WITH REPLACE option with the RESTORE command on MSSQL query window. Change database name and backup file location as per your setup.

USE MASTER
GO

RESTORE DATABASE  MyDB
FROM DISK = 'C:\Backups\MyDB_15082016.bak'
WITH REPLACE
GO

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top