This documentation is archived and is not being maintained.

How to: Add a Database to a Native Device Project

Visual Studio 2008

You can develop smart device applications that use SQL Server Compact 3.5 by using the Visual Studio integrated development environment (IDE).

For instructions about how to develop a SQL Server Compact 3.5 application that uses Visual C++ for Devices, see Installing a Development Environment.

When using SQL Server Compact 3.5 in your native project, the SQL Server Compact 3.5 CAB file is not automatically downloaded to the device when you deploy the project. You can add the SQL Server Compact 3.5 CAB file to your project.


Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.

To add the SQL Server Compact 3.5 CAB file to your project

  1. Right-click the project, and on the Project shortcut menu, click Add Existing Item.

  2. Navigate to the CAB file.


    Copy SQL Server Compact 3.5 to the smart device, and run the CAB file on the device.