hello,
I'm trying to connect to a sqlite3 databse through zeos component. I have copied sqlite3.dll of sqlite.org in my app dir. Then I've renamed it sqlite.dll.
I've affected the protocol property of ZConnection with 'sqlite'. the app compiles but raises an exception reading a nil address during connection.
Before trying to debug, I wanted to ask for help. Am I missing something ?
By the way, I've tried with success to access my database with sqliteadmin. Then, I'm little frustrated as I know it is made around zeos component.
Dominique
can't connect to sqlite 3 database ?
Moderators: gto, cipto_kh, EgonHugeist
-
- Fresh Boarder
- Posts: 13
- Joined: 12.09.2006, 11:15
-
- Fresh Boarder
- Posts: 13
- Joined: 12.09.2006, 11:15
-
- Fresh Boarder
- Posts: 13
- Joined: 12.09.2006, 11:15
Ok, I've figured that I should affect 'sqlite-3' to protocol.
Now it connects.
Second Step, I call ZConnect.GetTableNames but the function returns a zero count list. During a debug step, I copied the SQL string generated by GetTableNames and tried it under SQLite Administrator and ..... it works. Let's see if i can find the light :-)
Now it connects.
Second Step, I call ZConnect.GetTableNames but the function returns a zero count list. During a debug step, I copied the SQL string generated by GetTableNames and tried it under SQLite Administrator and ..... it works. Let's see if i can find the light :-)
-
- Fresh Boarder
- Posts: 13
- Joined: 12.09.2006, 11:15
-
- Fresh Boarder
- Posts: 13
- Joined: 12.09.2006, 11:15