Database Connection Error “file in use”

前端 未结 2 1836
天涯浪人
天涯浪人 2021-01-18 15:23

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

2条回答
  •  自闭症患者
    2021-01-18 16:04

    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.

提交回复
热议问题