Board index » delphi » Timeout Expired error with ADO Query component on large SQL Server table

Timeout Expired error with ADO Query component on large SQL Server table

We get a Timeout Expired error when we select a fairly large recordset from
a SQL Server table. Has anyone got any help for me ons this please! We dont
get that error with a BDE Query component with exactly the same SQL
statement.
 

Re:Timeout Expired error with ADO Query component on large SQL Server table


Have a look at yesterday's thread 'How can I change the timeout in
TADOQuery'

Reinhard

Re:Timeout Expired error with ADO Query component on large SQL Server table


Quote
>We get a Timeout Expired error when we select a fairly large recordset from
>a SQL Server table. Has anyone got any help for me ons this please!

The best solution is to switch to a TadoDataSet where the commandTimeOut
property works.   You can also set it in code by casting as a TadoDataset

(AdoQuery1 as TadoDataSet).CommandTimeout := 100;
--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads