Last post Apr 01, 2015 11:00 PM by Alisiben
Mar 31, 2015 10:48 PM|Alisiben|LINK
I created a mvc3 website. Need to create a model from a SQL server database. But when I add the connect to the database, I get the error
This file is in use.
Enter a new name or close the file that's open in another program.
Apr 01, 2015 09:19 PM|Edwin Guru Singh|LINK
As per your case, you can try the following steps:
1.Your xxx.mdf is attached in your SQL Server database. so You need to detach it.
2.Go to your SQL Server Management Studio-->Right-Click on xxx--> Tasks--> Detach.
3.Unless it is detached, it will be in use by the the SQL Server Management Studio
4.For more information,
Click here to refer the solution of this issue
Apr 01, 2015 11:00 PM|Alisiben|LINK
Thanks a lot!