Share this article:

Connecting to Vertica 7.1.x with QlikView 11.2

This document discusses connecting to Vertica 7.1.x using QlikView Business Discovery 11.2.

QlikView Business Discovery is a business intelligence (BI) tool that, once connected to the Vertica Analytics Platform, allows you to access and analyze your data and create visualizations.

Before using QlikView with Vertica , download and install QlikView from the QlikView web site.  Launch the executable and follow the prompts for installation.

A general note on Vertica ’s technology partner documents: Vertica creates ecosystem documents using one specific version of the partner product with one specific version of Vertica . In creating each document, Vertica makes connections from the partner product using one specific connection type. Versions used are noted within the documents. Other versions of the partner product may work with Vertica , but Vertica may not have tested other versions.

Before Connecting QlikView to Vertica

Before you use QlikView with Vertica :

  • If you do not have the ODBC driver installed, download and install the driver. You can find the ODBC driver available for download on https://my.vertica.com/, on the Download tab. You can download and install the specific Vertica ODBC driver alone or an Vertica client package that includes the driver.

Note General information on driver and server compatibility appears in the Vertica product documentation.  See Client Driver and Server Version Compatibility.

Note QlikView runs on the Windows OS.

Configuring an ODBC Data Source

Configure a data source by setting up a DSN. The examples in this section specify User DSN; alternatively, you can specify System DSN.)

  1. From your Windows desktop, open the ODBC Data Source Administrator.
  2. Under the User DSN tab, click Add to create a new data source.
  3. On the Create New Data Source dialog, locate and select the Vertica driver.
  4. Click Finish.

    image004.png

  5. In the Vertica ODBC Data Source Configuration dialog box, enter your specific data source information.image006.png
  6. Click Test Connection, and OK when the Connection Succeeded message appears. The User DSN tab now lists the Vertica driver under User Data Sources.image009.gif
  7. Click OK to close the ODBC Data Source Administrator.

Note There is more complete information on DSNs in the Creating an ODBC DSN for Windows Clients.

Disabling the QlikView Wizard

The QlikView wizard does not work with Vertica .  Follow these steps to disable it.

  1. Launch QlikView.
  2. From the QlikView start page, choose Settings > User Preferences.image010.png
  3. From the General tab under User Preferences, uncheck Show “Getting Started Wizard” when creating new document.image013.gif
  4. Click OK.

Connecting to the Vertica Database

Follow these steps to connect to the Vertica database through QlikView.

    1. From the QlikView Start Page, select the Edit Script.

      image015.jpg

    2. The Edit Script dialog box displays.image016.png
    3. Under the Database drop-down list, verify that ODBC is selected.image019.jpg
    4. Click Connect. The Connect to Data Source dialog box appears. (The following example uses the Vertica data source created earlier.)image020.png
    5. Check Show User DSNs.
    6. Click Test Connection. (Note that you entered the User ID and Password earlier when creating the data source.)
    7. Click OK when you receive the Connection Test Succeeded.image023.gif
    8. Click OK to open the Connect to Data Source dialog box. image025.gif

Notice that a line is added to the Edit Script screen: ODBC CONNECT TO Vertica.image026.png

Leave the Edit Script dialog box open, and continue with the next procedure.

Editing a Script

To query the Vertica database, you create SELECT statements through the QlikView interface by choosing database tables and fields in the Create Select Statement dialog box. QlikView then adds the statements to a script that, when executed, queries and collects information from your Vertica database.  You can include this information in reports and charts in QlikView.

Follow these steps to create SELECT statements and add them to your script: 

  1. From the Edit Script dialog box, click Select.image029.gif

    The Create Select Statement dialog box appears, listing your database tables.image030.png

  2. Select the desired tables and fields. As you select, click Add; QlikView adds them to the Script  When you are done, click OK. Informatica adds the SELECT statements to the Edit Script dialog box.image033.gif
  3. Click OK to accept the Edit Script dialog box as it appears. You can also edit your script manually on this page. The Main page (QlikView’s “sheet”) appears. See the QlikView documentation for complete information.
  4. Execute the script by clicking Reload.                                            image035.jpg
  5. Save the document if you are prompted to do so.

Your script executes.

image036.png

For More Information

Refer to the QlikView documentation for complete information on editing and executing scripts, and defining and displaying objects and charts within QlikView.

Share this article: