2011-02-09 45 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