Hi I creating an SQLite Database with the following code:
sqlite3conn.connected := false;
SQLite3Conn.DatabaseName := '/media/work/testarea/ymap.db';
qrySQLiteMain.SQL.Clear;
qrySQLiteMain.SQL.add('Create table SD (id integer,iX integer,iY integer)');
SQLite3conn.connected := True;
qrySQLiteMain.ExecSQL; //created
qrySQLiteMain.SQL.Clear;
qrySQLiteMain.SQL.add('insert into SD VALUES (1,8,9);');
qrySQLiteMain.ExecSQL;
qrySQLiteMain.SQL.Clear;
qrySQLiteMain.SQL.add('insert into SD VALUES (2,18,29);');
qrySQLiteMain.ExecSQL;
qrySQLiteMain.SQL.Clear;
qrySQLiteMain.SQL.add('insert into SD VALUES (3,18,19);');
qrySQLiteMain.ExecSQL;
SQLite3conn.connected := FALSE;
The file is created with the size of 0 - so no data is stored at all... what am I doing wrong?
Thanks in advance
EDIT: When using
SQLite3conn.CreateDB;
I get a runtime-error:
EDatabaseError: Operation is not supported by this type of database