par := TSQLParams.Create (csWIN1252);
erg := TSQLParams.Create (csWIN1252);
par.AddFieldType ('
Name', uftVarchar);
erg.AddFieldType ('
Id', uftInteger);
Felder := TStringList.Create;
Felder.Delimiter := #9;
Felder.StrictDelimiter := true;
UL.TransactionStart(trans,
DB);
repeat readln (f,s); inc (linecount);
// Hier lese ich aus einem Tab-delimited Textfile
felder.DelimitedText := s;
par.AsString[0] := Felder.strings[2];
UL.DSQLExecImmed2(
DB, trans, s1, 3, par, erg);
ipnr := erg.AsInteger[0];
par.AsString[0] := Felder.strings[3];
UL.DSQLExecImmed2(
DB, trans, s2, 3, par, erg);
albnr := erg.AsInteger[0];
par.AsString[0] := Felder.strings[11];
UL.DSQLExecImmed2(
DB, trans, s3, 3, par, erg);
vznr := erg.AsInteger[0];
until linecount >40;
//eof(f);