SQLiteConnection sqlite_conn; SQLiteCommand sqlite_cmd; // create a new database connection: sqlite_conn = new SQLiteConnection("Data Source=abc.db;Version=3;New=False;Compress=True;"); // open the connection: sqlite_conn.Open(); // create a new SQL command: sqlite_cmd = sqlite_conn.CreateCommand(); // Lets insert something into our new table: sqlite_cmd.CommandText = "INSERT INTO Company (Name) VALUES ('Test Text 1');"; // And execute this again ;D sqlite_cmd.ExecuteNonQuery(); // We are ready, now lets cleanup and close our connection: sqlite_conn.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)