﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Drivers and UDFs / Teradata   / JDBC Primary Index / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Thu, 04 Dec 2008 02:27:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: JDBC Primary Index</title><link>http://www.teradata.com/teradataforum/Topic10629-11-1.aspx</link><description>Ok, thanks.And I just looked into using dbc.indices, and that will work great for what I need. Thanks a lot!</description><pubDate>Wed, 20 Feb 2008 09:32:13 GMT</pubDate><dc:creator>newerakb</dc:creator></item><item><title>RE: JDBC Primary Index</title><link>http://www.teradata.com/teradataforum/Topic10629-11-1.aspx</link><description>INDEX_NAME would be NULL if the index wasn't given a name during the time of creation (which is purely optional in TD) ... (you can check the table DDL via the show table tablename) command to see if those indexes had a name or not.</description><pubDate>Wed, 20 Feb 2008 09:31:23 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>RE: JDBC Primary Index</title><link>http://www.teradata.com/teradataforum/Topic10629-11-1.aspx</link><description>Well the samples that came with the driver included a file showing how to get index information, leading me to believe that it worked. But when I tried using getIndexInfo(), INDEX_NAME in the ResultSet was always null. I know the ResultSet was set correctly because TABLE_NAME and some other data was present, but the actual name of the index column(s) were not there.Maybe I'm having nomenclature issues...the Index that getIndexInfo() is talking about should be Teradata's Index, right...like the primary index? Or is it some other relational db feature with the same name?</description><pubDate>Wed, 20 Feb 2008 09:26:16 GMT</pubDate><dc:creator>newerakb</dc:creator></item><item><title>RE: JDBC Primary Index</title><link>http://www.teradata.com/teradataforum/Topic10629-11-1.aspx</link><description>Are you sure getIndexInfo() didn't work for you ?I recall my development team using something like that in the past to  retrieve this information.Another way is to select from dbc.indices  (make use of the uniqueflag column)</description><pubDate>Tue, 19 Feb 2008 22:06:26 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>JDBC Primary Index</title><link>http://www.teradata.com/teradataforum/Topic10629-11-1.aspx</link><description>I'm attempting to write a Java application which creates test data in a table specified by the user. But my app needs to know which columns need to be unique, and which make up the index and/or primary index of the table. Since the Teradata JDBC driver does not support getIndexInfo, is there another way I can obtain this information?</description><pubDate>Tue, 19 Feb 2008 10:44:13 GMT</pubDate><dc:creator>newerakb</dc:creator></item></channel></rss>