본문 바로가기

SQL Server

System.Data.SqlClient.SqlError 디비 백업 오류 해결책

System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database



SQL Server 2014 Management Studio 에서 Database 백업을 할때 가끔씩 이런 오류를 접해볼수 있습니다. 당황하지 마시고 해결책을 보시면서 따라해주세요 




  1. 서버에 접속 후 데이터베이스에 오른쪽 마우스 키를 눌러주세요

  2. Restore Database를 눌러주세요

  3. 그 후 Option에 들어가주세요 (밑에 사진이 보일것입니다.

  4. 빨간색으로 그려진 것처럼 overwrite the existing database 를 체크 해주시고 DB Management Studio 를 재실행합니다.

  5. 마지막으로 DB restore에 .bak 파일을 백업을 실행합니다. 



저도 이 오류 때문에 고생이였는데 구글링으로 해결책을 찾았네요

인터넷이 하루 하루 또 다른 지식을 주네요


참조:https://www.linglom.com/it-support/solved-system-data-sqlclient-sqlerror-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-dbname-database/