Deletes the specified database.
Public Shared Sub DropDatabase(ByVal connString As String)
public static void DropDatabase(string connString)
connString The parameters for identifying a database in the form of a semicolon-separated list of keyword-value pairs.
ULException class A SQL error occurred.
You cannot drop a database that has open connections.
The following code creates the database \UltraLite\MyDatabase.udb on a Windows Mobile device then opens a connection to it.
' Visual Basic Dim connParms As ULConnectionParms = New ULConnectionParms connParms.DatabaseOnDevice = "\UltraLite\MyDatabase.udb" ULConnection.DatabaseManager.DropDatabase( _ connParms.ToString() _ )
The following code is the C# language equivalent:
// C# ULConnectionParms connParms = new ULConnectionParms(); connParms.DatabaseOnDevice = ".udb"; ULConnection.DatabaseManager.DropDatabase( connParms.ToString() ); ULConnection conn = new ULConnection( openParms.ToString() ); conn.Open();