无法添加数据库 [英] Data base can not be add

查看:160
本文介绍了无法添加数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,


我有一个问题我想将数据表(sql)添加到我的项目中,但我没有这个可能性。我看不到这个选项。


我在安装Visual Studio时安装了数据存储但是我无法添加任何sql数据库(只有xml)。


解决方案

嗨Gajus21,


欢迎来到MSDN论坛。


你的项目类型是什么?


请查看此文档:

创建数据库并在Visual Studio中添加表
我们可以在SQL Server Express LocalDB中创建本地数据库文件。


在此之前,您必须在Visual Studio中安装可选的 数据存储和处理工作负载。要安装它,
open  Visual Studio Installer 并选择  工作负载选项卡。在 Web& Cloud 下,选择数据存储和处理。选择  修改按钮
将工作量添加到Visual Studio。


之后,右键单击项目名称并选择Add-New Item ...,然后选择"基于服务的数据库",如下所示继续这些步骤:






最好的问候,


萨拉


Dear All,

I have a problem I want to add data tabel (sql) to my project but I do not have this posibility. I can not see this option.

I instal Data storage when I instaled Visual Studio but I can not add any sql data base (only xml).

解决方案

Hi Gajus21,

Welcome to the MSDN forum.

What’s your project type?

Please have a look at this doc: Create a database and add tables in Visual Studio and we can create a local database file in SQL Server Express LocalDB.

Before it, you must have the optional Data storage and processing workload installed in Visual Studio. To install it, open Visual Studio Installer and choose the Workloads tab. Under Web & Cloud, choose Data storage and processing. Choose the Modify button to add the workload to Visual Studio.

After that, right click the project name and select Add-New Item..., then choose ‘Service-based Database’ as below to continue those steps:

Best regards,

Sara


这篇关于无法添加数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆