简体   繁体   中英

Delphi 7 TAdoQuery too slow

I'm using Delphi 7 and SQL Server 2008. The connection is AdoConnection and the Query component I'm using is TAdoQuery.

When i run the following simple query in sql server

select FMStreamid, Latitude, Longitude, RealTime from tblFMStream where vehicleid = 2 

it takes 2 sec to execute in sql server (see pic) sql server response

However running the same query in Delphi takes around 15 seconds to Open. Does anyone know how to speed that? Thanks

他们在Delphi上花费的额外时间可能是AdoConnection正在使用的提供程序和打开查询时触发的数据集事件的结合

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM