Open Method (SQLiteConnection)
Opens a SQLite connection with the property settings specified by the
ConnectionString.
The following example creates a
SQLiteConnection, opens it, displays some of its properties, and then closes the connection.
|
|---|
public void CreateSQLiteConnection(string myConnString)
{
SQLiteConnection sqLiteConnection = new SQLiteConnection(myConnString);
sqLiteConnection.Open();
MessageBox.Show("ServerVersion: " + sqLiteConnection.ServerVersion
+ "\nState: " + sqLiteConnection.State.ToString());
sqLiteConnection.Close();
} |
|
|---|
Public Sub CreateSQLiteConnection(myConnString As String)
Dim sqLiteConnection As New SQLiteConnection(myConnString)
sqLiteConnection.Open()
MessageBox.Show("ServerVersion: " + sqLiteConnection.ServerVersion _
+ ControlChars.Cr + "State: " + sqLiteConnection.State.ToString())
sqLiteConnection.Close()
End Sub |