你好我有一个sqlite数据库,我有一个名为Archive inside的表,但使用我的代码就是说Finisar.SQLite.SQLiteException:SQL逻辑错误或缺少数据库:
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SQLiteConnection cn = new SQLiteConnection(@"Data Source=./database.db;Version=2;New=False;Compress=True;");
this.dataGridView1.SelectionMode =
DataGridViewSelectionMode.FullRowSelect;
SQLiteDataAdapter da = new SQLiteDataAdapter("SELECT * FROM Archive", cn);
try
{
cn.Open();
da.Fill(DT);
this.dataGridView1.DataSource = DT;
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
cn.Close();