2011-02-09 42 views
4

根据VS 2010 SP1中的“The Gu”(http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010- sp1-and-sql-ce.aspx)我应该可以打开SQL CE 4数据库。无法在VS 2010 SP1中打开SQL CE 4数据库

然而,当我尝试这样做,我得到以下错误:

"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"

其次错误:

"The operation could not be completed" 

请注意,这是一个ASP.NET MVC项目。

回答

3

有在SQL紧凑型4提供的工具一定的局限性,此处描述(下不是由SQL Server精简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精简顶部4个工具 - http://erikej.blogspot.com/2010/12/visual-studio-tools-for-sql-server.html

+0

这涉及到Windows项目(我已经更新了我的问题)。我正在有效地完成Scott在他的文章(在asp.net MVC中)中所做的工作。 – 2011-02-09 20:54:40

0

我的“解决方案”只是在Web矩阵中打开数据库来改变模式。

也许这只是VS 2010 SP1的beta版问题。

+0

除了Service Pack之外,您还必须在上面安装SQL Server Compact 4工具 - http://erikej.blogspot.com/2010/12/visual-studio-tools-for-sql-server.html – ErikEJ 2011-02-10 07:15:05