That code don't have any information...
Fill SLDatabase.DBName with ie. 'test.db' - then try to connect. By default if file does not exist SQLite creates it. In that case file is empty, so it's your job to fill it with data as well as structures.
I'm working on examples... Job is going slowly but to the right direction. If you want to try it please email me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
always get Unable to InitDB 5 database is locked
platform: delphi 5,
source code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, DBCtrls, Grids, DBGrids, Db, SLDataSet, SLDB;
type
TForm1 = class(TForm)
SLDatabase1: TSLDatabase;
SLDataSet1: TSLDataSet;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
DBNavigator1: TDBNavigator;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.
That code don't have any information...
Fill SLDatabase.DBName with ie. 'test.db' - then try to connect. By default if file does not exist SQLite creates it. In that case file is empty, so it's your job to fill it with data as well as structures.
I'm working on examples... Job is going slowly but to the right direction. If you want to try it please email me.