我正在使用Visual Studio 2010 C#Express和SQL Server Management Studio与SQL Server 2012我在尝试将数据库连接到Windows窗体项目时收到错误.
"This file is in use. Enter a new name or
close the file that is open in another program"
Run Code Online (Sandbox Code Playgroud)
我在网上试图找到一个解决方案但没有工作.所以我决定创建一个全新的数据库和一个全新的项目.但我仍然得到错误!
这是我使用的步骤:
Databases并选择New Database并命名school tables我的新数据库上的文件夹并选中new table student, course, enrolled 现在我跳到VS.
New Project然后我选择Windows Forms Application并命名Registrar add new data source database在Choose a data source type窗口中 选择Dataset在Choose a Database Model窗口中 选择 …