How to pull data from Teradata into Statistica via ODBC

How to pull data from Teradata into Statistica via ODBC

book

Article ID: KB0082219

calendar_today

Updated On:

Products Versions
Spotfire Statistica 10 and later versions

Description

 User needs to pull in data from Teradata into Statistica for Analysis. This article details the steps involved. PREREQUISITES:  
 1.In addition to the Statistica installation, Teradata ODBC driver must be downloaded and installed . 2. In context of using Statistica Enterprise Manager, the user should have permissions to create a database connection - Either System Admin (SADM) or Database Admin (EXTDB_ADM) and Data Admin (DADM) 3. Details of Teradata server and user credentials.

Issue/Introduction

How to connect to Teradata database from Statistica with Teradata ODBC driver

Resolution

1. Launch Control Panel >> System and Security >> Administrative Tools >>System DSN tab and click on the Add button.

2.  Choose Teradata Database ODBC Driver (If this driver is not listed, contact your system administrator). Click Finish

     User-added image


3.  Name the data source appropriately and enter the name/IP address if the Teradata server along with username and password details. Click on Test ... button to see if the connection succeeds. If the connection fails, contact your database administrator.  Enter details of your default database.

     User-added image

 4.  Click on Ok. Click either Yes or No on the Teradata warning for storing password depending on the security level in your organization. Click on Ok again to close the ODBC Data Sources dialog.

       User-added image

5. Within Statistica ( or Enterprise Manager) , create a new OLEDB database connection. From Statistica desktop, the user may choose File >> External Data >>Query >> Create (Within Enterprise Manager  you may right click on Database connections and click on New Database connection) . 

       User-added image
   
  6. In the Data Link properties dialog the user should choose "Microsoft OLEDB Provider for ODBC". Click Next

       User-added image

7.  Choose the DSN created in Step 4. Enter Username , Password, enable the option "allow saving password" and enter the database name and click Test connection to ensure that the information is correct. 

    User-added image

8.  If test connection succeeds, click on OK twice to close the Data Link Properties dialog. Name the connection, define Access permissions and then click on Commit on the top left hand corner of the Enterprise Manager. Enter Audit log information, if prompted. Note that from within Statistica, once database connection has been named, Statistica will automatically bring up SQL wizard 

      User-added image

9.  Expand System View and choose a folder. Right click on the folder and select New Data Configuration

      User-added image

10.  Name the database configuration, choose the database connection previously defined and then click on New next to the Queries button. 

    User-added image

11. Type out the SQL Statement or use the SQL Wizard to build the SQL statement. Click on Evaluate SQL to parse the SQL and then click on Next Step/ Commit to define Access Permissions for the data configuration.

    User-added image
    
  12. Click on Commit to save the data configuration. Click on Explore on the data configuration to bring data back into Statistica for further analyses.

     User-added image