1

Project is using:

  • ASP.NET MVC4
  • Entity Framework 5
  • SQL Server CE
  • IDE: Visual Studio Express 2012

Issue:

Entity Framework (model-first) has you add your models in the .edmx then you right-click the .edmx to generate database schema. However in VS Express we're unable to right-click the .sqlce file contents to load the option to "Execute Ctrl+Shift+E" the way we can in Visual Studio.

Question:

How can I run the script that was generated by the Entity Framework?

Previous attempts:

So far I've tried to open the Compact database in SQL Server Management Studio but I return an error that SSMS can't load the compact db because it's not the correct type also from Database Explorer I've pasted the script into a NewQuery window and ran the script but threw errors as well.

1
  • 2
    You may need to "fix" the script, as I describe here: erikej.blogspot.dk/2013/02/… - and the run it with the SQL Server Compact Toolbox (standalone) Commented Mar 11, 2013 at 8:40

1 Answer 1

1

I downloaded SQL Server Compact Toolbox and was able to run the script. Thanks and credit to ErikEJ.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.