You can connect to PostgreSQL databases in Exportizer using these ways:

  1. Opening through FD interface. Select FD interface, click PostgreSQL, then fill all needed database parameters. Consult with your database administrator on how to choose correct parameters.

    Example of configuring a database connection:

    (required parameters are highlighted)

    ParameterDescriptionValue example
    Vendor libraryPath to libpq.dll library of the PostgreSQL client installationC:\Program Files (x86)\PostgreSQL\10\bin\libpq.dll
    ServerIP address or hostname of the database server200.200.190.222
    PortThe server's listening port5432
    DatabaseThe name of the specific database to connect tocustomers
    CharsetThe default character set for the connectionUTF8
    Application nameApplication name to show in database sessionsExportizer Enterprise
    User nameDatabase user namedexter
    PasswordDatabase user password********
    SQL command separatorCommand separator in multi-command SQL scripts;
  2. Opening through ODBC DSN. Create (if it does not exist yet) an ODBC DSN of the corresponding type using Windows ODBC Data Source Administrator, and point it to your database. Then select ADO or BDE interface, choose ODBC data source option and then select the needed ODBC DSN from the drop-down list.
  3. Opening through connection string (interface: ADO). Select Connection string option and write a connection string. Connection string provides a flexible way to open the database because it can include different set of parameters. This way is recommended for advanced users but in most cases connection strings are enough simple even for beginners. Here are basic connection strings (more examples and details can be found in the Internet):

    Provider=PostgreSQL OLE DB Provider;Data Source=myServerAddress;location=myDataBase;User ID=myUsername;password=myPassword;   (PostgreSQL OLE DB Provider must be installed)

    Driver={PostgreSQL};Server=IP address;Port=5432;Database=myDataBase;Uid=myUsername;Pwd=myPassword;   (PostgreSQL ODBC Driver must be installed)

Attention

  • This database type is supported only in Exportizer Enterprise and Exportizer Pro (the latter one can open such databases via ODBC only).
  • PostgreSQL client must be installed. The bit-version of it (32 or 64) must match the bit-version of the application.
  • When choosing the ODBC option, please make sure the corresponding ODBC driver installed and the bit-version of it matches the bit-version of the application (32 or 64).

Notes

  • Each Exportizer edition has both 32-bit and 64-bit versions. You can install both and use them depending on what type of database you need to work with.
  • You can invoke the ODBC Data Source Administrator directly from Exportizer when it was launched in administrator mode: Invoking ODBC Data Source Administrator

See also