Thank you Ralf.
I shall have to set up a separate test system to see if a modified .sqb file
works with the commercial software which created it and feeds it.
I can see the purpose of the triggers and am sure they are not needed in my
case. Without going into unnecessary detail, I only delete Sessions from
the sessions table after the Flights table has been purged of relevant
entries anyway, so there is no need to automatically delete them. The
constraints are obviously there for a reason but I think they can go without
any problem in my case too, The system records the location of the user
when data is received, but my system is not mobile and hasn't moved from my
desk since 2006, so there is only one item of location data to pick from.
I shall simply create a new database on a different computer, set up the
tables and indices using the sql I quoted earlier modified to omit the
trigger and constraints, and copy all the data from the old database to the
new using sql. Then both can be run for a while in parallel to see if there
is any problem. The system runs 24/7 collecting data, so downtime means
missing data and has to be kept as short as possible. Then if all is well
after testing, I rename the old database and put the new one in its place.
Thank you again.
Michael Hooker
-----Original Message-----
From: yunqa-bounce@xxxxxxxxxxxxx [mailto:yunqa-bounce@xxxxxxxxxxxxx] On
Behalf Of Delphi Inspiration
Sent: 25 September 2015 06:58
To: yunqa@xxxxxxxxxxxxx
Subject: [yunqa.de] Re: DISQLITE3: Sqlite file opens with pro version, but
not personal version
On 25.09.2015 00:06, Michael Hooker wrote:
Could it be that Disqlite3 personal is limited to sqlite3 files withcertain
extensions ?
CREATE TABLE Sessions(SessionID integer primary key,LocationID integer notBEGIN
null,StartTime datetime not null,EndTime datetime,CONSTRAINT LocationIDfk
FOREIGN KEY (LocationID) REFERENCES Locations);
CREATE TRIGGER SessionIDdeltrig BEFORE DELETE ON Sessions FOR EACH ROW
DELETE FROM Flights WHERE SessionID = OLD.SessionID;END;