Cannot create file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mydatabase.mdf' because it already exists. Change the file path or the file name, and retry the operation.
Msg 1802, Level 16, State 4, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
how to solution for the above problem


Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 5:09 AM EST
Asma KhalidRank #160 · 14.7K reputationPosted Mar 3, 2017, 9:58 AM EST
Bryian TanRank #396 · 6.3K reputationPosted Mar 4, 2017, 7:41 AM EST