Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all articles
Browse latest Browse all 445

Pulling "SHOW VIEW" data using JDBC

$
0
0

Hello all,
I'm currently working on a project where I am pulling all of the CREATE/REPLACE view DDL from our data warehouse using Java code.  I create a result set by querying the DBC.tables table and use the RequestText field to process the SQL unless the length of the SQL is greater than the RequestText field can hold.  When that occurs, I run a seperate query issuing a "SHOW VIEW DB.ViewName" command to Teradata.  This works great unless the length of the DDL is > 32,000. 
It appears that the ResultSet defaults to a data type of LONGVARCHAR(32000) for the result of the SHOW VIEW command, and anything that is larger than that is truncated at character 32,000.
Does anyone know how I can avoid this truncation? 
I assume that if I could change the data type of the ResultSet returned from TD to LONGVARCHAR(64000), it would fix the problem.  Anyone know how to do that or know of some other  solution?
 
Thanks in advance!
 
Ben

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>