Connection String for Unprotected Database

Listing 1.

SqlCeConnection _connection = null;

private void Form1_Load(object sender, EventArgs e)
{
// Build the connection string
String connectString = String.Format(@"DataSource={0}\DBExample.sdf", AppPath());
// Open a connection to the database
_connection = new SqlCeConnection(connectString);
_connection.Open();
}