begin
DM1.Source.close;
DM1.Source.open;
While Not DM1.Source.eof do // eof = End Of File
Begin
with DM1.destination do
begin
Active:=False;
SQL.Clear;
SQL.Add('Insert into customer (id, FIRSTNAME,LASTNAME,CITY,COUNTRY)');
SQL.Add('Values (:b1 , :b2 , :b3 , :b4 , :b5)');
Params[0].Value := DM1.SourceID.Value;
Params[1].Value := DM1.SourceFIRSTNAME.Value;
Params[2].Value := DM1.SourceLASTNAME.Value;
Params[3].Value := DM1.SourceCITY.Value;
Params[4].Value := DM1.SourceCOUNTRY.Value;
ExecSQL;
end;
DM1.source.next;
End;