Teradata with Java CAPS
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Teradata with Java CAPS Expand / Collapse
Author
Message
Posted 8/30/2007 7:01:15 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 6/9/2008 2:55:55 PM
Posts: 185, Visits: 2
Has anyone used Teradata with Java CAPS? Specifically we're trying to use the Java CAPS OTD (Object Type Definition) to define a Teradata macro to Java CAPS. The Java CAPS OTD interface allows you to specify:

1) A table or view
2) A stored procedure
3) SQL

We select option 3, because option 2 only retrieves stored procedures. However, when we put in the "Exec macroname(?,?,?);", Java CAPS does not allow it, saying that it's an invalid SQL statement. I assume it's doing some form of validation. A regular "SELECT ..." statement works fine.

We would like to have our database retrieval code in macros, rather than having the code stored in Java CAPS, but there doesn't seem to be a way to do this. We can use stored procedures for updates, but we can't use them to retrieve resultsets.

Does anyone know a workaround to this?

Thanks,
Barry
Post #8726
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 ( 1 guest, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 9:21pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.016. 7 queries. Compression Disabled.