﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / Can a stored procedure be called thru a view ? / 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>Wed, 03 Dec 2008 15:40:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>A procedure can call other procedures. So you can have a macro call a procedure and that procedure can call other procedures. Keep in mind that everything executed by a macro is one request. Why not just call the procedure directly? Why have it go through a macro first?</description><pubDate>Mon, 17 Mar 2008 22:52:57 GMT</pubDate><dc:creator>rgs</dc:creator></item><item><title>RE: Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>when I try to execute code like the example I posted, I get Error 5497: CALL can not be submitted in multi statement request.If I eliminate all but one CALL stmt, it works, as suggested by the Error msg, but that doesn't help me at all. Any suggestions?</description><pubDate>Fri, 14 Mar 2008 09:01:53 GMT</pubDate><dc:creator>m_nardone</dc:creator></item><item><title>RE: Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>macros can call stored procedures as well as execute other macros ...however you cannot execute a macro from a stored proc as of v2r6</description><pubDate>Fri, 14 Mar 2008 00:11:28 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>RE: Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>On a similar note, I have two questions:a. can stored procs be called from a macro?  -- see belowI want to use the macro like to pass the parm to the stored procsb. can macros execute other macros?again using it as a "driver" to ensure that the correct macros are executed.example of a.REPLACE MACRO my_db.my_macro (table_parm VARCHAR(30) )  AS(CALL SP_1(':table_parm') ;CALL SP_2(':table_parm') ;CALL SP_3(':table_parm') ;CALL SP_4(':table_parm') ;CALL SP_5(':table_parm') ;);then execute using EXEC my_macro ('customer') ;</description><pubDate>Thu, 13 Mar 2008 13:44:09 GMT</pubDate><dc:creator>m_nardone</dc:creator></item><item><title>RE: Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>No, but you can call a UDF</description><pubDate>Thu, 13 Mar 2008 01:01:14 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>Can a stored procedure be called thru a view ?</title><link>http://www.teradata.com/teradataforum/Topic10910-5-1.aspx</link><description>Hi,In Teradata , Can we call a stored procedure thru a view ( this is possible in oracle ) ?And pointers would be highly appreciated.Regards,Madhavi</description><pubDate>Wed, 12 Mar 2008 14:58:44 GMT</pubDate><dc:creator>Madhavik</dc:creator></item></channel></rss>