7

I want to add a SQL Server Compact edition in my project in Visual Studio 2013.4, but I don't have the data source in my list:

Change Data Source

Also, I don't have System.Data.Sqlce in my assemblies.

System.Data

How can I add SQL Server Compact data source to my Visual Studio?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232

1 Answers1

12

1: Install the relevant runtime MSI (3.5 SP2 or 4.0) http://www.microsoft.com/en-us/download/details.aspx?id=5783 http://www.microsoft.com/en-us/download/details.aspx?id=30709

2: Install the SQL Server Compact Toolbox VS Extension, and browse to the database file, it will also add the connection to Server Explorer (if you really need that)

ErikEJ
  • 40,951
  • 5
  • 75
  • 115
  • 2
    Open the Toolbox, go to About, and click Register DDEX, restart VS. In the Toolbox, connect to your database file. – ErikEJ Feb 04 '15 at 10:29
  • "SQL Server Compact Toolbox VS Extension" is not available in Visual Studio Express 2015 for Desktop. It is not supported. – GeoffCoope Sep 15 '15 at 13:57
  • 1
    @GeoffCoope Use VS Community Edition instead of Express – ErikEJ Sep 15 '15 at 15:52