<?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 Does ExecuteSQL processor allow to execute stored procedure ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158922#M121313</link>
    <description>&lt;P&gt;Can I execute stored procedure on database using ExecuteSQL proessor ? Is there any sample ?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 19:02:18 GMT</pubDate>
    <dc:creator>shishir_saxena4</dc:creator>
    <dc:date>2016-04-06T19:02:18Z</dc:date>
    <item>
      <title>Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158922#M121313</link>
      <description>&lt;P&gt;Can I execute stored procedure on database using ExecuteSQL proessor ? Is there any sample ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158922#M121313</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-04-06T19:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158923#M121314</link>
      <description>&lt;P&gt;I don't think so but maybe you can wrap the exec storedprocedure into a shell script or groovy and run it in ExecuteProcess/ExecuteScript?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:16:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158923#M121314</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-06T19:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158924#M121315</link>
      <description>&lt;P&gt;Thank You &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; for your suggestion. I was able to call my stored proc using sqlplus and ExecuteProcess processor. Amazing community ! &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 01:27:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158924#M121315</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-04-08T01:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158925#M121316</link>
      <description>&lt;P&gt;Please post a screenshot, it's a great question.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 01:31:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158925#M121316</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-08T01:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158926#M121317</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393" target="_blank"&gt;@Artem Ervits&lt;/A&gt; My database is Oracle, so I used sqlplus to execute a script. Where script has following content.&lt;/P&gt;&lt;PRE&gt;execute spname(param)
exit&lt;/PRE&gt;&lt;P&gt;I used ExecuteProcess processor to call sqlplus&lt;/P&gt;&lt;P&gt;Note: This approach assumes that client tools for database are installed on NiFi Server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3284-executeprocess.jpg" style="width: 806px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20804iB69E2BA465B6508B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3284-executeprocess.jpg" alt="3284-executeprocess.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:09:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158926#M121317</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2019-08-18T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158927#M121318</link>
      <description>&lt;P&gt;awesome!!!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 10:44:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158927#M121318</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-08T10:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158928#M121319</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2820/shishirsaxena3.html" nodeid="2820"&gt;@Shishir Saxena&lt;/A&gt; check this out, you inspired this &lt;A href="http://funnifi.blogspot.com/2016/04/sql-in-nifi-with-executescript.html" target="_blank"&gt;http://funnifi.blogspot.com/2016/04/sql-in-nifi-with-executescript.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 07:59:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158928#M121319</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-09T07:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158929#M121320</link>
      <description>&lt;P&gt;It was really helpful. I used the same method to run a stored procedure on MSSQL using SQLCMD :&lt;/P&gt;&lt;PRE&gt;SQLCMD  -S server_name -U user_name -P password -i sample.sql&lt;/PRE&gt;&lt;P&gt;and in sample.sql I put:&lt;/P&gt;&lt;PRE&gt;exec sp_name sp_parameters&lt;/PRE&gt;&lt;P&gt;Then I used ExecuteProcess to call SQLCMD along with its parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 00:19:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158929#M121320</guid>
      <dc:creator>mashayekhi_m</dc:creator>
      <dc:date>2016-12-02T00:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158930#M121321</link>
      <description>&lt;P&gt;Yes, you can. &lt;/P&gt;&lt;P&gt;Checking the source code, if you set "true" for generate key in "putSql", it will use executeUpdates rather than executeBatch().

It works if you don't need any output from your SP                                                  &lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 20:36:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158930#M121321</guid>
      <dc:creator>philo1314</dc:creator>
      <dc:date>2017-04-11T20:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158931#M121322</link>
      <description>&lt;P&gt;I have tried calling mysql sp with putsql processor.Its worked for me.&lt;BR /&gt;my so doesn't return any values only does some insert operations. &lt;BR /&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/17343/philo1314.html" nodeid="17343"&gt;@Yilin Han&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2017 16:13:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158931#M121322</guid>
      <dc:creator>mvbandara</dc:creator>
      <dc:date>2017-08-13T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158932#M121323</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;   Do you have any sample groovy code which execute Stored Pprocedue with input and output parameter  ?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 17:22:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158932#M121323</guid>
      <dc:creator>gkp_shakeel</dc:creator>
      <dc:date>2018-02-19T17:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158933#M121324</link>
      <description>&lt;P&gt;Solved using the Groovy Code. &lt;BR /&gt;Stored PROC using the following input and output.&lt;/P&gt;&lt;P&gt;in_track_id IN &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;,&lt;BR /&gt;in_username IN &lt;STRONG&gt;VARCHAR2&lt;/STRONG&gt;,&lt;BR /&gt;in_course_no IN &lt;STRONG&gt;VARCHAR2&lt;/STRONG&gt;,&lt;BR /&gt;out_details OUT &lt;STRONG&gt;SYS_REFCURSOR&lt;/STRONG&gt;,&lt;BR /&gt;out_status_code OUT &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;,&lt;BR /&gt;out_status_desc OUT &lt;STRONG&gt;VARCHAR2&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;import org.apache.commons.io.IOUtils
import org.apache.nifi.controller.ControllerService
import org.apache.nifi.processor.io.StreamCallback
import java.nio.charset.*
import groovy.sql.OutParameter
import groovy.sql.Sql
import oracle.jdbc.OracleTypes
import java.sql.ResultSet
 
 
 
 
//DB Setting Start
//Harcoded connection string
//def sql = Sql.newInstance('jdbc:oracle:thin:@//ecuxxx.xxx.xxx.net:1526/dbSchema', 'UserID', 'UserPass$', 'oracle.jdbc.OracleDriver')
 
 
//Get the conncation string from NIFI conncation pool
def lookup = context.controllerServiceLookup
def dbServiceName = ConncationPool.value
def dbcpServiceId = lookup.getControllerServiceIdentifiers(ControllerService).find {
    cs -&amp;gt; lookup.getControllerServiceName(cs) == dbServiceName
}
 
 
def conn = lookup.getControllerService(dbcpServiceId).getConnection();
sql = Sql.newInstance(conn);
 
 
 
 
 
 
////Get the session values from Nifi flow Start 
def flowFile = session.get()
if(!flowFile) return
in_track_id = flowFile.getAttribute('body_track_id')
in_username =  flowFile.getAttribute('body_username')
in_course_no = flowFile.getAttribute('body_course_number')
////Get the session values from Nifi flow END
 
 
// special OutParameter for cursor type
OutParameter CURSOR_PARAMETER = new OutParameter() {
    public int getType() {
        return OracleTypes.CURSOR;
    }
};
def data = []
// Stored proc having 3 input and 3 out put, one out put having CURSOR datatype
String sqlString ="""{call &amp;lt;StoredPrcoName&amp;gt;(?, ?, ?, ?, ?, ?)}""";
// rs contains the result set of cursor and data values start Shakeel
def  status_desc
def  status_code
def  status_data
//def parametersList = ['20585', 'A3843UP', '00009934', CURSOR_PARAMETER, Sql.NUMERIC ,Sql.VARCHAR]; // testing purpose
def parametersList = [in_track_id, in_username, in_course_no, CURSOR_PARAMETER, Sql.NUMERIC ,Sql.VARCHAR];
 
 
sql.call(sqlString, parametersList) {out_details, out_status_code,out_status_desc -&amp;gt;
    status_desc = out_status_desc
    status_code = out_status_code
    out_details.eachRow {
        data &amp;lt;&amp;lt; it.toRowResult()
        status_data = data
    }
};
// rs contains the result set of cursor and data values end
 
 
//Set the session values start 
def attrMap = ['status_desc':status_desc, 'status_code':String.valueOf(status_code),'status_data':String.valueOf(status_data),'Conn':String.valueOf(conn)]
flowFile = session.putAllAttributes(flowFile, attrMap)
session.transfer(flowFile, REL_SUCCESS)
&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:05:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158933#M121324</guid>
      <dc:creator>gkp_shakeel</dc:creator>
      <dc:date>2018-03-22T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158934#M121325</link>
      <description>&lt;P&gt;I got error when trying SQLCMD using the following ExecuteProcess:&lt;/P&gt;&lt;P&gt;Anyone had the same issue?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7411i6306AA543821DCCF/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="nifi-exec-sql-proc.png" title="nifi-exec-sql-proc.png" /&gt;</description>
      <pubDate>Wed, 16 Jan 2019 00:50:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/158934#M121325</guid>
      <dc:creator>mike_bjc</dc:creator>
      <dc:date>2019-01-16T00:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/277517#M207593</link>
      <description>&lt;P&gt;Yes you can. This is the query i put in the "SQL select query" property to call the stored procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXEC [dbo].[usp_Service_Requests] @Service_request_num='${serviceRequestNumber}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:16:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/277517#M207593</guid>
      <dc:creator>ivaldez</dc:creator>
      <dc:date>2019-09-17T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/278144#M207860</link>
      <description>&lt;P&gt;What is your nifi version?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:01:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/278144#M207860</guid>
      <dc:creator>ro</dc:creator>
      <dc:date>2019-09-24T10:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/285372#M211779</link>
      <description>&lt;P&gt;Hi all!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im noob but i can execute a oracle procedure&amp;nbsp;into a package using PutSql Processor.&lt;BR /&gt;&lt;BR /&gt;So enjoy it..&lt;BR /&gt;&lt;BR /&gt;PutSql Processor configuration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anotación 2019-12-11 160051.png" style="width: 803px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25692i0C15A5B3B943D883/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anotación 2019-12-11 160051.png" alt="Anotación 2019-12-11 160051.png" /&gt;&lt;/span&gt;Oracle Sentence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;declare codigo NUMBER; mensaje VARCHAR2(500); begin pkg_name.prc_name(${block},${txseq},${item},codigo,mensaje); end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Package&lt;BR /&gt;&lt;BR /&gt;create or replace PACKAGE pkg_name is&lt;BR /&gt;PROCEDURE prc_name (&lt;BR /&gt;p_block IN NUMBER,&lt;BR /&gt;p_txseq IN NUMBER,&lt;BR /&gt;p_item IN NUMBER,&lt;BR /&gt;p_cod_error OUT NUMBER,&lt;BR /&gt;p_msj_error OUT VARCHAR2&lt;BR /&gt;);&lt;BR /&gt;end pkg_name;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Body&lt;/P&gt;&lt;P&gt;create or replace PACKAGE BODY pkg_name IS&lt;/P&gt;&lt;P&gt;PROCEDURE prc_name (&lt;BR /&gt;p_block IN NUMBER,&lt;BR /&gt;p_txseq IN NUMBER,&lt;BR /&gt;p_item IN NUMBER,&lt;BR /&gt;p_cod_error OUT NUMBER,&lt;BR /&gt;p_msj_error OUT VARCHAR2&lt;BR /&gt;) IS&lt;/P&gt;&lt;P&gt;v_id VARCHAR2(20);&lt;BR /&gt;v_tag VARCHAR2(20);&lt;BR /&gt;v_item_id VARCHAR2(20);&lt;BR /&gt;e_error EXCEPTION;&lt;BR /&gt;e_no_procesado EXCEPTION;&lt;BR /&gt;BEGIN&lt;BR /&gt;UPDATE paf_tablename paf&lt;BR /&gt;SET&lt;BR /&gt;paf.status = 'P',&lt;BR /&gt;paf.cod_err = 0,&lt;BR /&gt;paf.msg_err = 'Procesado'&lt;BR /&gt;WHERE&lt;BR /&gt;paf.block = p_block&lt;BR /&gt;AND paf.item = p_item&lt;BR /&gt;AND paf.txseq = p_txseq;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;p_cod_error := 0;&lt;BR /&gt;p_msj_error := 'correcto';&lt;/P&gt;&lt;P&gt;EXCEPTION&lt;BR /&gt;WHEN OTHERS THEN&lt;BR /&gt;&lt;BR /&gt;p_cod_error := 9000;&lt;BR /&gt;p_msj_error := 'Error al procesar bloque '&lt;BR /&gt;|| p_block&lt;BR /&gt;|| ' Transaccion '&lt;BR /&gt;|| p_txseq&lt;BR /&gt;|| ' item '&lt;BR /&gt;|| p_item&lt;BR /&gt;|| ' '&lt;BR /&gt;|| substr(sqlerrm, 1, 100);&lt;/P&gt;&lt;P&gt;END prc_name;&lt;/P&gt;&lt;P&gt;END pkg_name;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sorry my english.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 19:27:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/285372#M211779</guid>
      <dc:creator>gdr</dc:creator>
      <dc:date>2019-12-11T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/318960#M227624</link>
      <description>&lt;P&gt;The simplest solution at least for SQL Server is using the PuFile processor and simply putting your EXEC or EXECUTE statement in there. Look at &lt;A title="nifi execute stored procedure sql server" href="https://community.cloudera.com/t5/Support-Questions/Execute-Stored-Procedure-of-MSSQL-in-Nifi/m-p/318958/highlight/true#M227623" target="_self"&gt;my other answer&lt;/A&gt; here to see how to configure it and an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 00:39:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/318960#M227624</guid>
      <dc:creator>dominikschauer</dc:creator>
      <dc:date>2021-06-19T00:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336053#M232117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you tell me how do you create&amp;nbsp; your parameters (&lt;SPAN&gt;${block},${txseq},${item})&amp;nbsp;&lt;/SPAN&gt; in processor before this one so that you can pass them to plsqp procedure? Can you give me whole flow because this solution is not working for me now...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 08:11:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336053#M232117</guid>
      <dc:creator>LejlaKM</dc:creator>
      <dc:date>2022-02-11T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336092#M232133</link>
      <description>&lt;P&gt;In my case, these parameters are filtered after a call to a web service, so my solution won't work for you.&lt;BR /&gt;Can you show us how you're doing it?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 12:42:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336092#M232133</guid>
      <dc:creator>gdr</dc:creator>
      <dc:date>2022-02-11T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Does ExecuteSQL processor allow to execute stored procedure ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336098#M232135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two separate flow files (one for insert and one for delete) which works fine. And in the end i put Output port.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LejlaKM_0-1644584978190.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33524i6A9E4838B5FA1865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LejlaKM_0-1644584978190.png" alt="LejlaKM_0-1644584978190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that job is done I need to execute plsql procedure from destination database., so I made another process group with input port and another flow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LejlaKM_1-1644585147855.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33525i479EA2EAB32AB8F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LejlaKM_1-1644585147855.png" alt="LejlaKM_1-1644585147855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Processor generate table fetch selecting max and min date from one table like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LejlaKM_2-1644585255939.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33526i6779DBE74FC4685B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LejlaKM_2-1644585255939.png" alt="LejlaKM_2-1644585255939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And after that I need those two values to pass to plsql procedure and I don't know how.&lt;/P&gt;&lt;P&gt;Last processor putsql look like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LejlaKM_3-1644585346959.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33527iFCBB201C5D92F626/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LejlaKM_3-1644585346959.png" alt="LejlaKM_3-1644585346959.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and when I have no parameter to pass all works fine, but I need those parameter to pas&lt;/P&gt;&lt;P&gt;I hope that you can help me with this. I am new in nifi as you can see&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:17:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Does-ExecuteSQL-processor-allow-to-execute-stored-procedure/m-p/336098#M232135</guid>
      <dc:creator>LejlaKM</dc:creator>
      <dc:date>2022-02-11T13:17:05Z</dc:date>
    </item>
  </channel>
</rss>

