SqlCeVersionManager.UpgradeDatabase Method

Visual Studio 2010

Upgrades the SQL Server Compact database as identified by the connection string with the SQL Server Compact runtime as specified by the database version argument.

Namespace:  Microsoft.SqlServerCe.VersionManagement
Assembly:  Microsoft.SqlServerCe.VersionManagement (in Microsoft.SqlServerCe.VersionManagement.dll)

public static void UpgradeDatabase(
	string connectionString,
	SqlCeVersion databaseVersion
)

Parameters

connectionString
Type: System.String
A string that represents the connection.
databaseVersion
Type: Microsoft.SqlServerCe.VersionManagement.SqlCeVersion
The SQL Server Compact Runtime version.
Show: