I backup a database using SQL Server Management Studio v17.9.1 and then I try to restore the backup but it fails with the following message.
Thank you very much for helping.
System.Data.SqlClient.SqlError: The operating system returned the error '32(The process cannot access the file because it is being used by another process.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\DbName.mdf'. (Microsoft.SqlServer.SmoExtended)