System.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;”);
还有一种可能,软件所在的硬盘,没有空间了,比如软件启动需要额外200M空间,但软件所在硬盘还剩十几兆,这个时候,清理一下硬盘就能打开了
转载请注明:落伍老站长 » SQL logic error or missing database no such table: xxx