strucnjak79
Programmer
Well I need to fill my DB to test speed...
So I need procedure to do it! I made a loop, TADOQuery.... Well problem is, after first record is entered in database I got message 'CommandText does not return a result set' and I'm out of loop...
Here is some code...
for i:=1 to 50000 do
begin
qry.active := false;
no_page:=IntToStr(i); // I have one unique field....
qry.SQL.Add ('INSERT INTO tblRegTR ( ...fields...);
qry.SQL.Add ('VALUES ( ...values...');
qry.active := true;
end;
How to override this? Am I doing something wrong? Any idea?
Also, which is a key for this sign ' if I know that '/' is #c5?
So I need procedure to do it! I made a loop, TADOQuery.... Well problem is, after first record is entered in database I got message 'CommandText does not return a result set' and I'm out of loop...
Here is some code...
for i:=1 to 50000 do
begin
qry.active := false;
no_page:=IntToStr(i); // I have one unique field....
qry.SQL.Add ('INSERT INTO tblRegTR ( ...fields...);
qry.SQL.Add ('VALUES ( ...values...');
qry.active := true;
end;
How to override this? Am I doing something wrong? Any idea?
Also, which is a key for this sign ' if I know that '/' is #c5?