on 09-23-2016 2:47 AM
Hi Team,
I am using AdsCopyTableContents with a filter set on the source table, to copy records from source to destination.
Once copied, is there a more efficient way to delete all the filtered records in the source without having to go the .First, .Delete, .Next route?
I'm guessing Zap win't respect the filter..
Regards & TIA,
Ian
what about using SQL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Guys,
So, it turned out to be extremely simple and effective.
As the filter was already set for the Copy, after the copy it was simply a matter of looping through the filter until EOF, deleting the record each time. Works because ADS removes the record from app visibility when deleted.
{code snippet}
AdsCopyTableContents(_InvArch); | |
// | |
First; | |
while not Eof do | |
begin | |
Delete; | |
end; |
{end snippet}
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.