Hi, did some searching here and nothing helps. Read the Help system, same.
tblFiles.EmptyDataSet;
Sometimes it shows tblFiles.RecordCount as = to 0 and other times it does not.
I need to re-use a temporary Table 30-times per run of my application and I need to empty it before EVERY use.
I also tried an SQLQuery
DELETE * FROM tblFiles and it didn't like the *
Tried
DELETE FROM tblFiles and it did nothing.
How to empty a Table?
Moderators: gto, EgonHugeist
How to empty a Table?
Thanks
Dyslexic Bob
Dyslexic Bob
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Hello IbeDBob,
what kind of database do you use? Could you post some sourcecode on how you try to do it? Normally something like this should work:
Best regards,
Jan
what kind of database do you use? Could you post some sourcecode on how you try to do it? Normally something like this should work:
Code: Select all
ZConnection.Close;
ZConnection.SQL.Text := 'DELETE FROM tblFiles';
ZConnection.ExecSQL;
Jan