When database connections occur

Connections in InfoMaker

In the development environment, the setting of the Automatically Connect to Database system option controls whether InfoMaker connects to the database when you open a painter requiring a connection (the default) or automatically when you start InfoMaker.

The Automatically Connect to Database option has no effect in InfoMaker applications at runtime. Like PowerBuilder, InfoMaker connects to your database when you run an application that accesses the database.

StepsTo set the Automatically Connect to Database option in InfoMaker:

  1. Select Tools>System Options from the menu bar.

    The System Options dialog box displays.

    The sample shows the General tab page of the System Options dialog box. At top is an Initialization Path box with the sample entry j :  picasso build  b l d 5003. Next is a selected check box for Prompt on Exit and an unselected check box for Automatically Connect to Database. Next is a box labeled Recent objects list contains, with an entry of 0 items and a 36 -item limit. Next is a box labeled Recent libraries list contains and an entry of 8 with a limit of 36 items. Last is a box labeled Recent corrections list contains and an entry of 4 with a limit of 10 items.
  2. On the General tab page, select or clear the Automatically Connect to Database check box as follows:

    Select the check box The next time you start InfoMaker, it automatically connects to the database at startup and stays connected throughout the session until you exit.

    Clear the check box (Default) The next time you start InfoMaker, it connects to the database only when you open one of the following painters requiring a connection: Database, Report, Form, Data Pipeline, or Query. It does not connect to the database automatically at startup.

  3. Click OK or Apply.

    InfoMaker saves your AutoConnect setting in the registry.

How InfoMaker determines which database to access

InfoMaker connects to the database you used last when you open a painter that accesses the database. InfoMaker determines which database you used last by reading a setting in the registry.

What’s in this book

This book describes how to connect to your database when you are working in the InfoMaker development environment.