<?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>topic Re: How to call stored procedure (SQL Server) in alteryx in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/59055#M21634</link>
    <description>&lt;P&gt;:-) great question&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13634"&gt;@anbugans&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do this frequently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easy way is to drop an input tool onto your canvas - you can either use an input tool that does something useful (if you already are inputting data) or you can drop on a fake one that just does something arbitrary (e.g. "Select 1") as the query.&lt;/P&gt;&lt;P&gt;The trick though is to use the Pre-SQL section, and pop in the text "exec sp_my_procedure" where sp_my_procedure is your sproc that you're trying to call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-05-09_8-12-21.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/16538i0D2468B5BC941B83/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-05-09_8-12-21.png" alt="2017-05-09_8-12-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2017 02:43:56 GMT</pubDate>
    <dc:creator>SeanAdams</dc:creator>
    <dc:date>2017-05-09T02:43:56Z</dc:date>
    <item>
      <title>How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/58966#M21633</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have stored procedure which pulls the data from table (@table_name - parameter)&amp;nbsp;and insert the records into another table. I want to call this procedure to read tables dynamically and execute this procedure to load the data into another table. Please help on this to achieve the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gans&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 03:43:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/58966#M21633</guid>
      <dc:creator>anbugans</dc:creator>
      <dc:date>2018-05-24T03:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/59055#M21634</link>
      <description>&lt;P&gt;:-) great question&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13634"&gt;@anbugans&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do this frequently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easy way is to drop an input tool onto your canvas - you can either use an input tool that does something useful (if you already are inputting data) or you can drop on a fake one that just does something arbitrary (e.g. "Select 1") as the query.&lt;/P&gt;&lt;P&gt;The trick though is to use the Pre-SQL section, and pop in the text "exec sp_my_procedure" where sp_my_procedure is your sproc that you're trying to call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-05-09_8-12-21.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/16538i0D2468B5BC941B83/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-05-09_8-12-21.png" alt="2017-05-09_8-12-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 02:43:56 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/59055#M21634</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2017-05-09T02:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167150#M43647</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4534"&gt;@SeanAdams&lt;/a&gt;&amp;nbsp;Thanks for posting this...&lt;BR /&gt;&lt;BR /&gt;Can you please answer two questions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Will this work for Oracle too?&lt;/P&gt;&lt;P&gt;2. Secondly, is there a way we can pass variables in arguments in Pre-SQL statement? And if so, how do I define variables in Alteryx?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example using above:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exec sp_my_procedure(&lt;FONT color="#FF0000"&gt;&lt;EM&gt;var_arg_1,var_arg_2,var_arg_3&lt;/EM&gt;&lt;/FONT&gt;)&amp;nbsp;&lt;/STRONG&gt;instead of&amp;nbsp;&lt;STRONG&gt;exec sp_my_procedure(&lt;FONT color="#FF0000"&gt;&lt;EM&gt;1,2,3&lt;/EM&gt;&lt;/FONT&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 20:02:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167150#M43647</guid>
      <dc:creator>timewaste</dc:creator>
      <dc:date>2018-05-29T20:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167360#M43700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/19627"&gt;@timewaste&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Not sure if this works for Oracle - anyone else on the community use Oracle that can check?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of parameters - as far as I'm aware the only way to do this would be using an action tool to modify the XML.&amp;nbsp; &amp;nbsp;Well worth you posting this as an idea in the product ideas section for the designer here;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Ideas/idb-p/product-ideas" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Ideas/idb-p/product-ideas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 10:34:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167360#M43700</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2018-05-30T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167361#M43701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/19627"&gt;@timewaste&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Not sure if this works for Oracle - anyone else on the community use Oracle that can check?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of parameters - as far as I'm aware the only way to do this would be using an action tool to modify the XML.&amp;nbsp; &amp;nbsp;Well worth you posting this as an idea in the product ideas section for the designer here;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Ideas/idb-p/product-ideas&amp;nbsp;" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Ideas/idb-p/product-ideas&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 10:37:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/167361#M43701</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2018-05-30T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/319314#M58159</link>
      <description>&lt;P&gt;To handle parameters, use the SQL DYNAMIC INPUT tool.&amp;nbsp; It allows you to select a stored procedure and to set the parameter values.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:37:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/319314#M58159</guid>
      <dc:creator>BARTONCONNIE</dc:creator>
      <dc:date>2018-11-01T17:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/483364#M97669</link>
      <description>&lt;P&gt;Thanks for answering question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried with Pre SQL statement. But&amp;nbsp; i want to track Stored Procedure Ran with error or success . How can i achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:33:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/483364#M97669</guid>
      <dc:creator>NamrataDhiwar</dc:creator>
      <dc:date>2019-10-31T15:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/483563#M97716</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/64764"&gt;@NamrataDhiwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alteryx doesn't have a way of managing rows that have an error like some of the other ETL platforms do. &amp;nbsp; What Alteryx will do is report an error if the SP throws an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to continue processing - then a better way is to design the SP to return data, and call this using a dynamic input.&lt;/P&gt;&lt;P&gt;You could return a record set with a 1 if it was successful, and a zero if it fails - that way you can continue processing rather than your canvas failing because of a SQL error&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 20:04:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/483563#M97716</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2019-10-31T20:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/743956#M177893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15235"&gt;@BARTONCONNIE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an example workflow of this by chance? I'm trying to find a way to store a dynamic variable that will change the WHERE clause of the dynamic input SQL query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks tons!&lt;/P&gt;&lt;P&gt;Gina&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:13:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/743956#M177893</guid>
      <dc:creator>Gina2021</dc:creator>
      <dc:date>2021-04-07T14:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/743960#M177894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4534"&gt;@SeanAdams&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this! Do you by chance have a workflow example?&amp;nbsp; I'm diving into stored procedures for the first time today and am shaky on if it will accomplish what I'm looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find a way to store a dynamic variable that will change the WHERE clause of the dynamic input SQL query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks tons!&lt;/P&gt;&lt;P&gt;Gina&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:15:32 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/743960#M177894</guid>
      <dc:creator>Gina2021</dc:creator>
      <dc:date>2021-04-07T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/744168#M177974</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/223932"&gt;@Gina2021&lt;/a&gt;&amp;nbsp; - calling a stored procedure that brings back a select is just a matter of putting it in to the SQL editor like the screenshot below.&lt;/P&gt;
&lt;P&gt;However - if what you're doing is a parameterised SP, alteryx doesn't have an easy way to pass in parameters as variables, you have to invoke the SP using parameters as literals&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g. "exec SelectStuff2 @param1 = 1,@Param2 = 1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this - you need to dynamically change your query - either using a Dynamic Input tool or a macro.&lt;/P&gt;
&lt;P&gt;Dynamic Input tool will also allow you to change Where clauses, so you may not need to use an SP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-04-07 171318.png" style="width: 572px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/179320i7FAF324C5524D2A8/image-dimensions/572x491?v=v2" width="572" height="491" role="button" title="Screenshot 2021-04-07 171318.png" alt="Screenshot 2021-04-07 171318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 21:24:03 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/744168#M177974</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2021-04-07T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/787062#M191977</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you so much for the info... very useful.&amp;nbsp; New to Alteryx.&amp;nbsp; I am getting an error "Store Procedure are not supported for this type of connection "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints on what type of connection should I have/make?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:07:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/787062#M191977</guid>
      <dc:creator>wsalaz01</dc:creator>
      <dc:date>2021-07-15T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/838369#M206179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/259506"&gt;@wsalaz01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most probably you have your connection as User, it should be System.&lt;/P&gt;
&lt;P&gt;Remember, SP work only for&amp;nbsp;Microsoft SQL Server, Oracle, or SAP Hana.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 15:43:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/838369#M206179</guid>
      <dc:creator>Aguisande</dc:creator>
      <dc:date>2021-10-25T15:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/1251817#M311787</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I am trying to run a SQL script on the SQL Server through Alteryx . I use input data tool to connect to SQL server database and add query to the tool,&amp;nbsp; For a normal select or join etc. it works fine. However, it seems not working if my script includes assigning parameter or inset into a&amp;nbsp; #temp table(sample code below), it won't pass the 'Test Query' even.&amp;nbsp; Does Alteryx has the feature of 'Pass-Through', means pass whatever you input to the server side to run without checking anything?&amp;nbsp; &amp;nbsp;I have put the sample script below, it works when it runs on SQL Server directly.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DECLARE @M_Date date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT @M_DATE = MAX(CLOSING_DT) FROM TABLE1;&amp;nbsp; &amp;nbsp;&amp;lt;----- NOT WORKING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT COL1, COL2&lt;/P&gt;&lt;P&gt;INTO #TEMP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;-------------NOT WORKING&lt;/P&gt;&lt;P&gt;FROM TABLE2&lt;/P&gt;&lt;P&gt;WHERE SALES_DT = @M_DATE&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 11:46:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/1251817#M311787</guid>
      <dc:creator>amir0606</dc:creator>
      <dc:date>2024-03-17T11:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to call stored procedure (SQL Server) in alteryx</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/1255225#M312689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/488813"&gt;@amir0606&lt;/a&gt;&amp;nbsp; - given this is an old thread for a slightly different topic, people may not find your question because many folk are only scanning newer threads.&amp;nbsp; &amp;nbsp; You may get better pickup by creating a new thread for this specific question.&lt;BR /&gt;&lt;BR /&gt;My understanding - and the connectors team can confirm (copied below) - is that there is no "passthrough" mode on the SQL section of an input tool - but there are 2 potential ways that you can do what you're trying to do:&lt;/P&gt;
&lt;P&gt;- Firstly - put this into a pre-SQL, and in that Pre-SQL you create a table that you can query in your main SQL.&amp;nbsp; &amp;nbsp; Not particularly pretty though because you leave tables lying around.&lt;/P&gt;
&lt;P&gt;- Second - wrap this in a stored procedure on SQL - and then just execute that.&amp;nbsp; &amp;nbsp; Warning - if you have multiple recordsets returning, or insert and updates - you may have to turn off some of the flags that show recordset count otherwise this may also impact Alteryx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW - one of the most requested features for Alteryx for a while has been the plain old SQL tool - to do inserts, updates, deletes and more complex SQL like you're doing here.&amp;nbsp; &amp;nbsp; &amp;nbsp;Not sure where this is on the roadmap.&amp;nbsp; &amp;nbsp; &amp;nbsp;It would be well worth you dropping an idea in the Ideas section&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Ideas/idb-p/product-ideas" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Ideas/idb-p/product-ideas&lt;/A&gt;&amp;nbsp;with your idea of what you're trying to achieve and the capability you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CC:&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/263611" target="_blank" rel="noopener"&gt;@wesley-siu&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/20626" target="_blank" rel="noopener"&gt;@VojtechT&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 10:57:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-call-stored-procedure-SQL-Server-in-alteryx/m-p/1255225#M312689</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2024-03-26T10:57:41Z</dc:date>
    </item>
  </channel>
</rss>

