<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Procedure overloading in HANA SQL in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534955#M4699045</link>
    <description>&lt;P&gt;Hi Santosh, &lt;/P&gt;&lt;P&gt;overloading of procedures is not possible. You have to create a procedure with a different name for each parameter set. &lt;/P&gt;&lt;P&gt;For some usecases, an optional IN Parameters with a DEFAULT value could be a solution. &lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Jörg&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 07:58:08 GMT</pubDate>
    <dc:creator>Joerg_Brandeis</dc:creator>
    <dc:date>2021-12-17T07:58:08Z</dc:date>
    <item>
      <title>Procedure overloading in HANA SQL</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaq-p/12534953</link>
      <description>&lt;P&gt;I want to create 2 stored procedures with different sets of params. is it possible in HANA SQL.&lt;/P&gt;
  &lt;P&gt;Example:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Create Table DEMO_TABLE ( ID INTEGER, NAME VARCHAR(10), NAME2 VARCHAR(10) );&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;CREATE PROCEDURE pkg_demo_entry(IN ID             INTEGER, IN NAME 		    NVARCHAR(10), IN NAME2        NVARCHAR(10) ) LANGUAGE SQLSCRIPT AS BEGIN INSERT INTO DEMO_TABLE (ID, NAME, NAME2) VALUES(:ID, :NAME, :NAME2); END ;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;CREATE PROCEDURE pkg_demo_entry(IN ID             INTEGER, IN NAME 		    NVARCHAR(10) ) LANGUAGE SQLSCRIPT AS BEGIN INSERT INTO DEMO_TABLE (ID, NAME, NAME2) VALUES(:ID, :NAME, 'XXXXX'); END ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Dec 2021 06:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaq-p/12534953</guid>
      <dc:creator>former_member768160</dc:creator>
      <dc:date>2021-12-17T06:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure overloading in HANA SQL</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534954#M4699044</link>
      <description>&lt;P&gt;Hi Santosh, &lt;/P&gt;&lt;P&gt;It is but you would have to create them in two different schema's.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534954#M4699044</guid>
      <dc:creator>dvankempen</dc:creator>
      <dc:date>2021-12-17T07:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure overloading in HANA SQL</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534955#M4699045</link>
      <description>&lt;P&gt;Hi Santosh, &lt;/P&gt;&lt;P&gt;overloading of procedures is not possible. You have to create a procedure with a different name for each parameter set. &lt;/P&gt;&lt;P&gt;For some usecases, an optional IN Parameters with a DEFAULT value could be a solution. &lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Jörg&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534955#M4699045</guid>
      <dc:creator>Joerg_Brandeis</dc:creator>
      <dc:date>2021-12-17T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure overloading in HANA SQL</title>
      <link>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534956#M4699046</link>
      <description>&lt;P&gt;An alternative option is to take the approach  used by the PAL procedures:&lt;/P&gt;&lt;P&gt;use a generic “parameters” table structure to communicate parameters to the procedure. &lt;/P&gt;&lt;P&gt;This makes calling the procedure more complex as one first has to establish the table structure (often a temporary table), fill it with the required parameters, and then call the procedure with the reference to the table. On the other hand, this call sequence will be identical for any call to the procedure. &lt;/P&gt;&lt;P&gt;The different functional variations of the procedure can then either be handled in different branches of the “main” procedure or via sub-procedured.&lt;/P&gt;&lt;P&gt;Anyhow, you probably get the idea.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 02:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/procedure-overloading-in-hana-sql/qaa-p/12534956#M4699046</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2021-12-21T02:03:03Z</dc:date>
    </item>
  </channel>
</rss>

