I am using Visual Studio 2010 C# Express and SQL Server Management Studio with SQL Server 2012 I am getting an error when I try to connect a database to my Windows forms pro
Your school.mdf is attached in your SQL Server 2012. You need to detach it.
Go to your SQL Server Management Studio, Right-Click on School, Tasks, Detach.
Unless it is detached, it will be in use by the the SQL Server Management Studio.
You need To detach it. If you don't want to do that, select "Microsoft SQL Server" instead of "Microsoft SQL Server Database File". Express versions VB don't have Microsoft SQL Server option.