Topic: Beginner Questions
Hello,
I installed version 0.50 in Delphi 2010. I playing around with the components and did some reading in the help file. Not all is clear to me and I'm getting warning messages.
Questions:
- I'm creating the database with:
dbSQLite.CreateDatabase('SQLitePassTest.db3', dbtUnknown, UTF16);
Q1. Is dbtUnknown the correct type? Any other type is giving me a warning after the second time that I open the database: Error while loading data from database. The "SqlitePass_DbSettings" table is corrupted or was created using an older version of this component.
Q2. I'm using UTF16 because delphi 2010 uses this as default string type. Is this correct what I'm doing?
- I created a table using the following code, this works fine
With TSqlitePassEngine.Create(dbSQLite) do
begin
Try
OpenDatabase(dbSQLite.Database);
ExecSQL('CREATE TABLE [tblFileMemory] ([Filename] TEXT NULL, [Filesize] INTEGER NULL,[Filedate] INTEGER NULL)');
Finally
CloseDatabase;
Free;
End;
End;
- I've placed a TSQLitePassDataset and set the SQL to
SELECT * FROM [tblFileMemory]
When I try to open the Dataset I get the following error: TSqlitePassDataset.InternalOpen : Cannot Open Dataset.
The database is connected (checked) and assigned using the database property of the TSQLitePassDataset component.
I can't get this simple Select statement to work.
Help appreciated,
Pascal