原文:
SQL logic error or missing database no such table: xxxSystem.Data.SQLite.SQLiteException (0x80004005): SQL logic error or missing database no such table: xxx
錯誤原因:在連接配接資料庫時,資料庫檔案沒有使用絕對路徑:
new SQLiteConnection("Data Source=xxx.sqlite;Version=3;");
解決方法:指定資料庫檔案絕對路徑即可
new SQLiteConnection("Data Source=D:\111\222\333\xxx.sqlite;Version=3;");