Home DADE
New Blog Posts: Merging Reports - Part 1 and Part 2

ADO Connection

edited February 2014 in DADE
Hi,

Using RB 14, Delphi XE3.

Have I understood how the standard ADO DADE plug-in (daADO) works correctly,
please? The CommandTimeout property of a QueryDataView created in the report
takes its value from the CommandTimeout property of the TADOConnection that
the report is connected to?

So if I have a report where the query is timing out after the default 30
seconds, if I change the TADOConnection.CommandTimeout value on my Delphi
form, this will feed through to the report QueryDataView's query?

Many thanks,
Jason.

Jason Sweby.

Comments

  • edited February 2014
    Hi Jason,

    Yes, if you take a look at the daADO.pas file inside the
    TdaChildADOQuery.SetConnection routine, you will see that we assign the
    CommandTimeOut property from the ADOConnection object.

    When a QueryDataView is created the internal query is a TdaChildADOQuery
    (TADOQuery descendent).

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2014
    Thanks Nico, I can confirm this has worked.

    Jason.

This discussion has been closed.