简体   繁体   English

使用MS Visual Studio 2015添加本地SQL数据库时出错

[英]Error to add local sql database with MS Visual Studio 2015

I installed all Visual Studio 2015, SQL express 2014, and SQL Manager 2014. When I try to add new .mdf database by click [add new item] under [Project] in Visual Studio, it will pops up a message like the picture 我安装了所有Visual Studio 2015,SQL Express 2014和SQL Manager2014。当我尝试通过在Visual Studio中单击“项目”下的“添加新项”来添加新的.mdf数据库时,它将弹出类似图片的消息。 在此处输入图片说明

However, when I try to create a local database by right click [add connections] in [Server Explore] section, it also pops up a message like the picture 但是,当我尝试通过右键单击[服务器浏览器]部分中的[添加连接]创建本地数据库时,它也会弹出一条消息,如图所示 在此处输入图片说明

In addition, my local sever configuration is like this 另外,我的本地服务器配置是这样的 在此处输入图片说明

How can solve this problem. 如何解决这个问题。 What am going to do is try to add local database to my application, so after I publish my application this database will store the information for user. 要做的是尝试将本地数据库添加到我的应用程序,因此在发布应用程序后,该数据库将为用户存储信息。

问题解决后,我重新安装了SqlLocalDB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM