Error: 'System.Data.SqlClient.SqlError: MDF File Cannot Be Overwritten. It Is in Use by Database $Name' When Restoring a Database in SQL Server
Last updated on MARCH 31, 2017
Applies to:Primavera P6 Professional Project Management - Version 18.104.22.168 and later
Primavera P6 Enterprise Project Portfolio Management - Version 22.214.171.124 and later
Information in this document applies to any platform.
When attempting to restore data from database A using the .bak file into a new empty database B, the following error occurs:
System.Data.SqlClient.SqlError: The file 'C:\SQL Directory\DATA\A.mdf' cannot be overwritten. It is being used by database 'A'.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms