Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding SQL Server Compact Edition data source to Visual Studio?

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?

like image 477
Mohammad Dayyan Avatar asked Feb 04 '15 04:02

Mohammad Dayyan


People also ask

How do I open SQL Server Compact Edition database file in Visual Studio?

You can open an SDF file with several programs, including Microsoft Visual Studio and LINQPad. To open an SDF file with Visual Studio, select View → Server Explorer → Data Connections → Add Connection..., change the data source to "Microsoft SQL Server Compact," click Browse..., and select the SDF file.

How do I import a SQL Server database into Visual Studio?

In Solution Explorer, right-click the WideWorldImporters-SSDT project, click Import, then click Database. In the Import Database window, click Select Connection. In the Connect window, configure your connection properties, then click Connect. In the Import Database window, click Start.

How do I download SQL Server data Tools for Visual Studio?

Launch the Visual Studio Installer. In the Windows Start menu, you can search for "installer". In the installer, select for the edition of Visual Studio that you want to add SSDT to, and then choose Modify. Select SQL Server Data Tools under Data storage and processing in the list of workloads.


1 Answers

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)

like image 101
ErikEJ Avatar answered Nov 13 '22 23:11

ErikEJ