sql - 无法将 SQL Compact Edition 添加到我的 VB.net 应用程序

标签 sql vb.net visual-studio-2012 sql-server-ce

我刚开始使用 SQL Compact Edition 和 VB.net 2012。

我遇到了以下网站,希望能帮助我入门:http://sharecom-clemo.blogspot.com.au/2012/05/code-sample-demonstrating-how-to_07.html

但是它说'转到项目属性的引用页面并首先引用 SQL Server CE 程序集。然后您可以导入 SQL Server CE 命名空间。'

我希望通过单击“项目”>“添加引用”我这样做是正确的

然后选择“Microsoft SQL Server Compact Control”。

However when selecting that and clicking on 'OK' I get a error not allowing me to add it as it says that it can't register the ActiveX type library.

enter image description here

有谁知道我做错了什么,这是我应该做的吗?

最佳答案

转到程序集选项卡(不是 COM),然后浏览到 C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop 和对 System.Data.SqlServerCe.dll 的引用

关于sql - 无法将 SQL Compact Edition 添加到我的 VB.net 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17459497/

相关文章:

mysql - 如何在sql where子句中实现 'if not-then'之类的东西

vb.net - 为什么这个结构列表不允许我为该字段分配值?

c# - VS 11 单元测试框架

c# - xUnit v1 测试出现在 xUnit GUI (xunit.gui.clr4.exe) 但不是 VS 2012 测试资源管理器

visual-studio-2012 - 未找到错误 MSB4019 : Microsoft. WindowsPhone.v4.5.Overrides.targets”

Mysql - 如何在左连接中为整个表数据添加别名

java - 如何更改 ListView 项目的字体?

java - 根据一条数据的最高编号对sql表进行排序

VB.Net PrintForm 自动调整

vb.net - VB.net 中的密码学 - 解密文件比源文件大?