How to: Secure a Database (Visual Studio)
In this topic, you will learn how to help secure an existing SQL Server Compact database from Visual Studio 2010 Service Pack 1 2010 SP1.
To secure a database
In Visual Studio 2010 Service Pack 1, open Server Explorer.
In Server Explorer, right-click Data Connections, and then choose Add Connection.
In the Add Connection dialog box, choose the SQL Server Compact 4.0 database that you want to configure, and then click OK.
In Server Explorer, right-click the SQL Server Compact 4.0 database you just added and choose Database Properties.
In the Database Properties window, select the Set password page.
Enter the old password, if one exists, and then type a new password for the database. Click OK to save your changes. If you specify a non-blank password, the database is encrypted by default.