I am trying to restore a database backup but getting error:
Restore failed for Server 'ASIF-VAIO'. (Microsoft.SqlServer.SmoExtended)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: File 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\uwa.mdf' is claimed by 'Aston_Fresh_log'(2) and 'Aston_Fresh'(1). The WITH MOVE clause can be used to relocate one or more files. (Microsoft.SqlServer.Smo)
When restoring, you need to be sure to
Overwrite
option in the Options
tab page and define valid and new file names for the .mdf
and .ldf
file so that you don't accidentally overwrite another database on your system:If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With