Hi there guys...
Been working all week for the database connection of VC# with SQLite. I got an error everytime i try to open the database... No matter how i tried the SQLiteConnection.Open() command still returns an error...
I installed the required ADO.NET and the required SQLite Database...
here's a sample code
using System.Data;
using System.Data.SQLite;
/*other using goes here*/
// here's a portion for the connection
private void SetConnection()
{
try{
sql_con = new SQLiteConnection
("Data Source=C:/Users/Jessie/Documents/Visual Studio 2008/Projects/Face/DAT/DTR_DB.s3db;Version=3;New=False;Compress=True;");
MessageBox.Show("Database Loading Successfull", "Database Load");
sql_con.Open(); //THE ERROR GOES HERE
MessageBox.Show("Database Opening Successfull", "Database Open");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "Database Error");
}
}
that's the code Im using for my trial and error in connecting to SQLite... That's not the actual code I'm using for my program...
Kindly help me...
Im running VC# 2008 Express Edition in Windows 7 Ultimate...
Thanks in advance...