Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateDatabase Method

SqlCeVersionManager.CreateDatabase Method

Visual Studio 2010

Creates a new 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 CreateDatabase(
	string connectionString,
	SqlCeVersion databaseVersion


Type: System.String
A string that represents the connection.
Type: Microsoft.SqlServerCe.VersionManagement.SqlCeVersion
The SQL Server Compact runtime version.
© 2015 Microsoft