---
title: The backup set holds a backup of a database other than the existing database
description: "Eroarea „The backup set holds a backup of a database other than the existing database\" apare la restaurarea unei baze de date peste una existentă. Soluția este folosirea opțiunii **WITH REPLACE**: ``` RESTORE DATABASE BazaDeDate FROM DISK = 'C:BazaDeDate.bak' WITH…"
url: "https://www.hostx.ro/kb/the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/"
updated: "2026-07-25"
category: SolidCP / Baze de date / MSSQL
tags:
  - backup
  - bază de date
  - depanare
  - restore
  - SQL Server
---

# The backup set holds a backup of a database other than the existing database

Eroarea „The backup set holds a backup of a database other than the existing database" apare la restaurarea unei baze de date peste una existentă. Soluția este folosirea opțiunii **WITH REPLACE**:

```
RESTORE DATABASE BazaDeDate
FROM DISK = 'C:BazaDeDate.bak'
WITH REPLACE
```

Alternativ, în SQL Server Management Studio (SSMS), la restaurare bifează **„Overwrite the existing database (WITH REPLACE)"**.
