it's slow to run ado???

edited July 2004 in FastScript
the following is my script :
var conn,rs:Variant;
begin
conn := CreateOleObject('ADODB.Connection');
conn.ConnectionString :='Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=DB_Service;Data Source=localhost';
conn.Open;

rs := conn.Execute('select name from web_user');
rs.MoveFirst;

while not (rs.EOF = True) do
begin
Showmessage(rs.Fields('name').value);
rs.MoveNext;
end;
end.

but it's so slow while runing!
what probleam about it??????????

Comments

  • edited 8:13PM
    It's not a FS problem. I think the same code in the Delphi will run slow.
  • edited 8:13PM
    in delphi it's so fast! i change the connectionstring line into
    "File name=c:\link.udl" ,running speed is slowly too.

Leave a Comment