SqlCeEngine.Upgrade Method

Upgrades a SQL Server Compact database from version 3.5 to 4.0. After the upgrade, the database will be encrypted if the source database was encrypted. If it was not, the upgraded database will be unencrypted.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

'Declaration
Public Sub Upgrade
'Usage
Dim instance As SqlCeEngine

instance.Upgrade()
Show: