I created a piece of code to backup a SQLite db, but I keep getting an error and I can't figure it out. Any assistacne would be greatfully accepted.
private void btnExport_Click(object sender, EventArgs e) { AC.cmd.Parameters.Clear(); var filePath = Application.StartupPath + "\\" + "Backup"; AC.OpenConnection(); var query = String.Format("BACKUP DATABASE [{0}] TO DISK='{1}'", AC.dbName, filePath); AC.cmd.CommandType = CommandType.Text; AC.cmd.CommandText = query; AC.cmd.ExecuteNonQuery(); AC.CloseConnection(); }