Query teradata database using C programming UNIX platform

Analytics

Query teradata database using C programming UNIX platform

I want to query teradata database using C programming on a UNIX server. Can someone provide an example on how this can be done. Not real sure how to connect to database, embed the query into the C code, and provide results to a flat file.

Thanks if you can help.
1 REPLY

Re: Query teradata database using C programming UNIX platform

Consider using ODBC as your programming interface to the database. It's generic and portable. Teradata ODBC drivers for various platforms can be dowloaded from www.teradata.com.

Google "ODBC programming" for examples or tutorials.