Database Connection Error “file in use”

前端 未结 2 1805
天涯浪人
天涯浪人 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.

    0 讨论(0)
  • 2021-01-18 16:05

    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.

    0 讨论(0)
提交回复
热议问题