SQL logic error or missing database

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
IbeDBob
Junior Boarder
Junior Boarder
Posts: 47
Joined: 27.05.2010, 21:04

SQL logic error or missing database

Post by IbeDBob »

Hi All, I have to use Zeos 6.6. as I am still on Delphi 5 and am getting this error when opening a database.

In the IDE it works fine.
Running the program directly form the development folder it works fine.
But - if I make a copy of the program, the sqlite.dll and the database in another folder, I get the above error.

Anyone suggest what is going wrong here?

I can't step through the opening process as it all works fine in the IDE.
Thanks

Dyslexic Bob
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: SQL logic error or missing database

Post by marsupilami »

Hello Dyslexic Bob,

could you please check, if the path to your database if hard coded in the source or if the path actually gets set correctly during runtime? Usually you should set it by some statement like

Code: Select all

ZConnection.Database := ExtractFilePath(ParamStr(0)) + 'sqlite.db';
Best regards,

Jan
Timothykr
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 26.09.2014, 21:32
Location: Ghana
Contact:

In my opinion, it is the big error.

Post by Timothykr »

You have hit the mark. It seems to me it is very excellent thought. Completely with you I will agree.
Post Reply