无法在 VS 2010 SP1 中打开 SQL CE 4 数据库
根据“The Gu”,在VS 2010 SP1(http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx)中我应该能够打开 SQL CE 4 数据库。
但是,当我尝试执行此操作时,出现以下错误:
“连接所需的数据提供者 无法复制到本地数据文件 成立。该文件被添加到 通过类型化 DataSet 进行项目 与该文件关联的将不会 生成”
后跟错误:
"The operation could not be completed"
请注意,这是针对 ASP.NET MVC 项目的。
According to "The Gu", in VS 2010 SP1 (http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx) I should be able to open SQL CE 4 databases.
However, when I try to do this I get the following error:
"The data provider required to connect
to the local data file could not be
found. The file be added to the
project by the typed DataSet
associated with the file will not be
generated"
followed by the error:
"The operation could not be completed"
Note that this is for an ASP.NET MVC Project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SQL Compact 4 提供程序工具存在一些限制,如下所述(在 SQL Server Compact 4.0 未启用的方案下)- http://blogs.msdn.com/b/sqlservercompact/archive/2011/01 /12/microsoft-sql-server-compact-4-0-is-available-for-download.aspx
除了服务包之外,您还必须在顶部安装 SQL Server Compact 4 工具 - http://erikej.blogspot.com/2010/12/visual-studio-tools-for-sql-server.html
There are some limitations in the SQL Compact 4 provider tooling, described here (under Scenarios not enabled by SQL Server Compact 4.0) - http://blogs.msdn.com/b/sqlservercompact/archive/2011/01/12/microsoft-sql-server-compact-4-0-is-available-for-download.aspx
In addition to the service pack, you must install the SQL Server Compact 4 tools on top - http://erikej.blogspot.com/2010/12/visual-studio-tools-for-sql-server.html
我的“解决方案”只是在网络矩阵中打开数据库来更改架构。
也许这只是 VS 2010 SP1 测试版的问题。
My "solution" was just to open the database in web matrix to alter the schema.
Perhaps this was just an issue with the beta of VS 2010 SP1.