Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Unable to execute SQLCE script in VS 2012 Express for Windows Desktop

$
0
0

I am new to Entity Framework and SQL Server Compact.  I'm trying to use the "model first" method to create an Entity Framework 5.0 model and an SQLCE database.  After creating the model, I right-click the design surface and chose "Generate database from model" from the context menu. I was prompted for a database connection and selected SQL Server Compact and created a new database (the .sdf file was created with no tables and appears in Database Explorer). When I click Finish in the Generate Database wizard, a DDL script is created (Model1.edmx.sqlce) and opened in VS.  

The tutorial I am following says the next step is to right-click on the script and choose Execute SQL from the context menu.  The problem is that there is no Execute SQL choice in the menu. If I right-click on the open window for Model1.edmx.sqlce , my choices are:

  • Breakpoint
  • Run to Cursor
  • Run Flagged Threads to Cursor (grayed out)
  • Cut
  • Copy
  • Paste
  • Outlining

I also see that the icon for Model1.edmx.sqlce in Solution Explorer is the one for an unknown file type. If I right-click on the item in Solution Explorer there is still no Execute SQL option.

It appears that I am missing an association between the sqlce filetype and some component that is supposed to run the script to create the SQLCE database. Does anyone know what I need to do to get this to work?


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>