HomeUsing LincDoc 3.1+Database LookupsConnecting LincDoc to an External Database

19.2. Connecting LincDoc to an External Database

You can configure a connection between LincDoc and an external database using the Databases dialog box.

Once a connection has been established, you use database lookups in a lookup action to pull database information into your forms. This connection may also be used for the stored procedure action.

Proceed to one of the following sections for more information:

Accessing the Databases Dialog Box

On the LincDoc toolbar, click the system button, and select databases from the list of options that appears.

 

The Databases dialog box appears, displaying any currently configured database connections.

About the "default" Connection

A default database connection is supplied with every installation of LincDoc.

You cannot delete this connection; it is the connection to the back-end database that drives the LincDoc application. In addition, certain configuration settings (such as Max idle, Max wait, and the property/value pairings) are only available to superusers (the "admin" account).

In addition, this database is the default database used for the LincDoc repository.

Adding a New Database

You can add a new database connection using the new database button on the Databases dialog box.

  1. Access the Databases dialog box.
  2. At the top of the Databases dialog box, click the new database button.

    The New Database dialog box appears.
     
  3. In the ID text box, type a name for the new database connection.
    This name will appear in the list of existing database connections on the Databases dialog box.
  4. Click OK.
    The Configure database dialog box appears.
     
  5. Proceed to Configuring a Database Connection below.

Configuring a Database Connection

You can configure an existing database connection using the Configure database dialog box, which is accessed via the configure button on the Databases dialog box.

  1. Access the Configure databases dialog box using one of the following options:
  1. On the Configure database dialog box, specify or alter the connection options, as necessary.
    Note: For assistance on determining your exact local settings, contact your local database administrator.

    The following options are available:
  1. If necessary, specify custom properties and values using the table at the bottom of the dialog box.

    Important: These property and value settings are designed for advanced users, and allow you to pass extra parameters to the JDBC driver. The parameters that can be passed are dependent on the selected JDBC driver. For example, review the following website for more information on parameters used by Microsoft SQL Server.

    1. Click the add button (highlighted below).

      The property name dialog box appears.
       
    2. In the New property name text box, type a name for the property.
    3. Click OK.
      The new property appears in the property column of the table on the Configure database dialog box. 
    4. Specify a value for the property in the value column.
  2. At the top of the Configure database dialog box, click test.
    Your configuration settings are tested, and if the database connection works as expected, a Success dialog box appears. Otherwise, verify that your settings are correct and re-test.
  3. Click OK to close the Success dialog box.
  4. At the top of the Configure database dialog box, click save.
    You are returned to the Databases dialog box. 

Applying Configuration Updates

You must click the apply button at the top of the Databases dialog box to verify that the configuration updates are being used.

 

A message appears, confirming that you most recent changes have been applied to the database configurations.

Click OK to close the dialog box.

Uploading a CSV File

You can upload an external CSV file to create a new database table, or replace an existing table.

  1. Access the Configure databases as described in Configuring a Database Connection.
  2. Click the upload button that corresponds to the appropriate connection.
     
    The Upload CSV to database dialog box appears.
     
  3. From the Table drop-down list, select the existing database table that will hold the data from the CSV file. This will replace the entire contents of the table. If you wish to create a new table, type in the name instead of picking from the list.
  4. Click the select button.
    The Open dialog box appears.
  5. Navigate to the location of the CSV file you want to use, and click it to select it.
  6. Click Open.
    You are returned to the Upload CSV to database dialog box, and the selected CSV file now appears next to the select button.
  7. Click upload.The data in the CSV file is loaded to the specified database table. 

Exporting a Database Table

You can use the export button on the Databases dialog box to export data from a connected database's table to a local CSV file.
 

Exporting the table data requires that you select the appropriate database, schema, and table from a displayed list.

  1. Click the export button that corresponds to the database whose data you want to export.
    A list of the database's schema appears.
     
  2. Click the desired schema.
    A list of the schema's tables appears.
     
  3. Click the table whose data you want to export.
    The table's data is saved into a CSV file and downloaded by your browser.
    Note: The exact process for downloading the CSV file differs based on your current web browser. 

Removing a Database Configuration

For more information, see Deleting a Database Connection.

This page was: Helpful | Not Helpful