All database applications are automatically provided with a Session object that encapsulates the default BDE session. You can create, and manipulate additional session components as needed.

If you intend to add another Session object, follow the sequence in this procedure for adding data objects to the design surface:

  1. Add the Session object.

  2. Add a Database object to your form (if accessing tables through a BDE alias). It is automatically linked to the Session object already on the form.

  3. Set the Database object’s databaseName property to the name of the BDE alias, and set its active property to true.

  4. Add a Query object. It is automatically linked to the Session and Database objects already on the form or report.

  5. Set the Query object’s SQL property, then set its active property to true.