[英]How connect database created in SQL Server Management Studio with Visual Studio?
I've created a database Test1
in Microsoft SQL Server Management Studio and I would like to connect this database to my VS C# project. 我在Microsoft SQL Server Management Studio中创建了一个数据库
Test1
,我想将此数据库连接到我的VS C#项目。 I found this question where are instructions how to connect just system databases (tables master, model, msdb and tempdb). 我发现这个问题在哪里说明如何只连接系统数据库(表master,model,msdb和tempdb)。 Is there some way how to connect user-created table to my VS project?
有没有办法将用户创建的表连接到我的VS项目?
Thank you for your answers and I hope that my problem is understandable. 感谢您的回答,我希望我的问题是可以理解的。
Probably not the best way, but from Visual Studio: 可能不是最好的方法,但是来自Visual Studio:
From here, there are two options depending on whether the database above was created for SQL Server or as a SQL Express file. 从这里开始,有两个选项,具体取决于上面的数据库是为SQL Server创建还是作为SQL Express文件创建的。
OR 要么
You should now see Test1 under data connections in the Server Explorer pane, finally: 您现在应该在Server Explorer窗格中的数据连接下看到Test1,最后:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.