﻿<?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   / UDF creation using ODBC - V2R6 / 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 01:48:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: UDF creation using ODBC - V2R6</title><link>http://www.teradata.com/teradataforum/Topic9071-11-1.aspx</link><description>You can create a stored procedure to do this in PL/SQL</description><pubDate>Thu, 04 Oct 2007 01:15:52 GMT</pubDate><dc:creator>FAQ</dc:creator></item><item><title>RE: UDF creation using ODBC - V2R6</title><link>http://www.teradata.com/teradataforum/Topic9071-11-1.aspx</link><description>Thankyou very much for all your inputs. Is there any work around with SQL to acomplish this. &lt;br&gt;&lt;br&gt;Many Thanks,&lt;br&gt;Sony</description><pubDate>Thu, 04 Oct 2007 01:02:44 GMT</pubDate><dc:creator>sony</dc:creator></item><item><title>RE: UDF creation using ODBC - V2R6</title><link>http://www.teradata.com/teradataforum/Topic9071-11-1.aspx</link><description>You have to write the code in C or Java so as to make this function available to SQL statements in Teradata and besides you cannot create UDF via ODBC you have to use bteq to submit a UDF creation request through CLI.</description><pubDate>Wed, 03 Oct 2007 01:17:14 GMT</pubDate><dc:creator>FAQ</dc:creator></item><item><title>RE: UDF creation using ODBC - V2R6</title><link>http://www.teradata.com/teradataforum/Topic9071-11-1.aspx</link><description>In V2R6, Teradata does not support SQL UDFs. They must be written in C/C++ and may not contain embedded SQL statements.</description><pubDate>Tue, 02 Oct 2007 21:49:29 GMT</pubDate><dc:creator>Fred Pluebell</dc:creator></item><item><title>UDF creation using ODBC - V2R6</title><link>http://www.teradata.com/teradataforum/Topic9071-11-1.aspx</link><description>How to CREATE a UDF in Teradata (V2R6)  for the following function in oracle&lt;br&gt;&lt;br&gt;&lt;br&gt;FUNCTION GET_FAA(P_E_SEQ_ID 	C.SEQ_ID%TYPE)&lt;br&gt;RETURN VARCHAR2&lt;br&gt;AS&lt;br&gt;V_S VARCHAR2(2000);&lt;br&gt;&lt;br&gt;CURSOR GET_S IS&lt;br&gt;SELECT S_CATEGORY||'-'||S_NAME||'-'||S_MOD AS SY&lt;br&gt;FROM SIDE_EFFS A&lt;br&gt;WHERE A.SEQ_ID = P_E_SEQ_ID;&lt;br&gt;&lt;br&gt;&lt;br&gt;BEGIN&lt;br&gt;&lt;br&gt;FOR LIST IN GET_S LOOP&lt;br&gt;&lt;br&gt;V_S := V_S||'; '||LIST.SY;&lt;br&gt;&lt;br&gt;END LOOP;&lt;br&gt;&lt;br&gt;V_S := SUBSTR(V_S,3);&lt;br&gt;&lt;br&gt;RETURN(V_S);&lt;br&gt;&lt;br&gt;EXCEPTION&lt;br&gt;		WHEN OTHERS THEN&lt;br&gt;		V_S := NULL;&lt;br&gt;&lt;br&gt;RETURN(V_S);&lt;br&gt;&lt;br&gt;END ;&lt;br&gt;&lt;br&gt;I would like to call this function within the sql statements of the Teradata SQL.&lt;br&gt;&lt;br&gt;Any thoughts and ideas will of great help.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;S</description><pubDate>Tue, 02 Oct 2007 14:49:37 GMT</pubDate><dc:creator>sony</dc:creator></item></channel></rss>