数据的访问
在 SQL CE 中创建数据库
l System.Data.SqlServerCe.Engine
l Dim eng As New Engine()
l eng.LocalConnectionString = _
l"Data Source=My Documents\DemoDB.sdf; Password='pass'"
l eng.CreateDatabase()

| The first step your application will likely need to take with SQL CE is to create a database for it to use. The Engine object provides methods for the creation and maintenance of CE databases. Creating a database is as simple as providing a connection string and calling the CreateDatabase method. The connection string requires that you provide a Data Source parameter. This is simply a file path on the device. You can optionally provide a password that will be required upon any subsequent connection to the database. This example creates a database named “DemoDB.sdf” with a password of “pass”.