如何在visual studio中创建本地数据库?

时间:2014-12-04 10:54:33

标签: sql-server database visual-studio-2013

我来自http://www.codeproject.com/Articles/739232/Csharp-WPF-Dependency-Injection-Data-Demo关于DI的文章。但首先我需要创建一个数据库,我按照所有步骤加载xml,更改了服务器名称并安装了新的SQL SERVER Tools update但它仍然说unable to connect to the target server。 我错过了什么吗?

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:2)

点击View - > Server Explorer - >选择Data Connection并选择Add Connection

enter image description here

然后选择Microsoft SQL Server数据库文件并单击Continue按钮:

enter image description here

并单击OK,将创建您的本地数据库。