Running SQL Server CE 4 Queries with Visual Studio 2012 and SQL Server Management Studio 2012

廉价感情. 提交于 2019-11-26 23:38:04

问题


I have recently upgraded to Visual Studio 2012 and SQL Server Management Studio 2012, however I cannot seem to see how to execute SQL scripts (created by Entity framework) on a SQL Server CE 4.0 database. With VS2010 + SSMS 2008 the Transact-SQL editor would ask for a connection and you could browse to the object, however this option is not available in SSMS 2012.

I have tried to execute the script via the Server Explorer -> New Query window, but I get parse errors. Any clues?


回答1:


Microsoft got rid of that for SSMS 2012, and suggested to use the integrated tools in WebMatrix instead (from memory, can't find a link for that sorry).

As suggested in that Microsoft Answers post, however, you could use the SQL Server Compact Toolbox, it's pretty effective.




回答2:


Try using the SQL Server Object Explorer instead of the Server Explorer. That should allow you to do what you wish.



来源:https://stackoverflow.com/questions/12427459/running-sql-server-ce-4-queries-with-visual-studio-2012-and-sql-server-managemen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!