Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlCeEngine.CreateDatabase Method

Creates a new database.

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

[SecurityPermissionAttribute(SecurityAction.Assert, UnmanagedCode = true)]
public void CreateDatabase()

The following sample demonstrates how to create a new SQL Server Compact database.


string connString = "Data Source='Test.sdf'; LCID=1033; Password=\"s$;2'!dS64\"; Encrypt = TRUE;";
SqlCeEngine engine = new SqlCeEngine(connString);

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft