Hello everyone, I'm developing an application with C # and I am finding difficulties. To retrieve data from the database using this method:
string sqlString = "SELECT * FROM Proclamatori"; conn = new SQLiteConnection(connString); try { conn.Open(); SQLiteDataAdapter adpt = new SQLiteDataAdapter(sqlString, conn); DataTable dtProclamatori = new DataTable(); adpt.Fill(dtProclamatori); ... ... ... } catch(SQLiteException ex) { MessageBox.Show(ex.Message); SearchDB(); } finally { conn.Close(); } but if the database is not found, instead of intercepting the exception and call SearchDB changed from the code and create a blank database in the appropriate folder. How can I avoid this behavior? Sorry for my bad english. Thank you very much. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users