Tip
If you don't already have a Teradata instance running, we recommend signing up for a free ClearScape Analytics trial.
-
The ADBC driver for Teradata is available from Columnar's private driver registry. Create a Columnar Console account and activate a 14-day free trial. Then authenticate to the registry:
dbc auth login
-
Install the ADBC driver for Teradata:
dbc install --level user teradata
-
Download and install the Teradata Tools and Utilities (TTU). Select "Tools and Utilities" and choose the package for your platform. Install to the default location:
- Linux:
/opt/teradata - macOS:
/Library/Application Support/teradata - Windows:
C:\Program Files\Teradata\Client
On Windows, you can do this with
winget install Teradata.TTUBaseOn macOS with Homebrew, you can do this with
brew tap Teradata/teradata && brew install ttubasesuite - Linux:
-
Set
LD_LIBRARY_PATH(Linux),DYLD_LIBRARY_PATH(macOS), orPATH(Windows) to make sure the TTU libraries are discoverable by your application. -
Customize the C++ program
main.cpp:- Change the connection arguments in the
AdbcDatabaseSetOption()calls.uriis the URI of your Teradata instance. The format isteradata://user:password@host[:port].
- Change the SQL SELECT statement in
AdbcStatementSetSqlQuery().
- Change the connection arguments in the
-
Build and run the C++ program:
Using Make:
pixi run make ./teradata_demo
Or using CMake:
pixi run cmake -B build pixi run cmake --build build ./build/teradata_demo
Clean build artifacts:
Using Make:
pixi run make cleanUsing CMake:
rm -rf build