UniConnection

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
vetalkw
Posts: 5
Joined: Fri 19 Mar 2021 09:52

UniConnection

Post by vetalkw » Fri 19 Mar 2021 10:12

Hello!
I want to connect UNIDAC to my database (RCEM1).
unfortunately UniDAC does not connect my database (RCEM1).
I have read these instructions:
https://www.devart.com/unidac/docs/data ... htm#sqlite
https://www.devart.com/unidac/docs/using-sqlite.htm
https://www.devart.com/unidac/docs/usin ... connection
https://www.devart.com/unidac/docs/basics.htm
.....
apparently I make a mistake somewhere, and I can't identify the error (maybe I overheated).
Figure 1: Error while connecting UniConnection1 to the RCEM database.
Image


Figure 2: location of the database file (it is located in the same folder as my project)
Image


In Figure3: I open the RCEM1 database in DB Browser (SQLite) (to show that the database is working).
Image


please tell me where I made a mistake.
P.S.: I tried to load other SQLite database files, there is also an error.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: UniConnection

Post by Stellar » Fri 19 Mar 2021 11:27

You've specified a relative path to the RCEM1 file in the Database field; at design-time, the current directory is the location of the IDE, not the project. You need to specify the absolute path to the RCEM1 database:

Code: Select all

UniConnection.Database := 'c:\database\RCEM1';

Post Reply