I use Delphi 2007 and i'm sending a query that takes approximately 45-55 seconds for a result. I tested this with Query Analyzer. My ADO connection times out at 30 seconds which is the default setting no matter what I set the connection time out to be.
Code Snipit:
AdoConnection1.ConnectionTimeout:=300;
AdoConnection1.CommandTimeout:=300;
Adoquery1.close;
Adoquery1.sql.add('select * from db.table');
adoquery1.open;
My sql example is simplified the actual SQL contains 4 unions for 4 differing databases which dramatically slow the queries. This should work if the ADOconnection would give it more time. I'm open to suggestions.
Code Snipit:
AdoConnection1.ConnectionTimeout:=300;
AdoConnection1.CommandTimeout:=300;
Adoquery1.close;
Adoquery1.sql.add('select * from db.table');
adoquery1.open;
My sql example is simplified the actual SQL contains 4 unions for 4 differing databases which dramatically slow the queries. This should work if the ADOconnection would give it more time. I'm open to suggestions.