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 4:22PM
    It's not a FS problem. I think the same code in the Delphi will run slow.
  • edited 4:22PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.