<?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: Execute SQL Stored Procedure in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411518#M26434</link>
    <description>&lt;P&gt;Thank&amp;nbsp; you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always try searching before posting but didn't spot anything useful, guess I wasn't using right terms so will give it another go using your hints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've gotten it working now using :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	Connect to odbc (datasrc=dbdsn user = user password = password);
		Execute(db.stored_proc) by odbc;
	Disconnect from odbc;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I really don't like having the username and password in plain text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however I've managed to find&lt;/P&gt;&lt;PRE class="sas"&gt;&lt;SPAN&gt;proc pwencode&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;which gets around the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'd still prefer to use the server authentication as I do when connecting to a library though)&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 13:40:58 GMT</pubDate>
    <dc:creator>itchyeyeballs</dc:creator>
    <dc:date>2017-11-08T13:40:58Z</dc:date>
    <item>
      <title>Execute SQL Stored Procedure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411506#M26432</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with the syntax to execute a simple stored procedure within an EG process flow?&lt;BR /&gt;&lt;BR /&gt;I've seen a guide here - &lt;A href="https://amadeus.co.uk/sas-tips/executing-sql-stored-procedures-using-proc-sql/" target="_self"&gt;https://amadeus.co.uk/sas-tips/executing-sql-stored-procedures-using-proc-sql/ &lt;/A&gt;but would rather not include the log in details in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can run procsql using syntax like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table SqlserverLibrary.table as&lt;BR /&gt;select * from desktop1.all;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to execute a simple stored procedure in the same way. There are no parameters, the procedure simply drops some temp tables and recreates them with updated versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411506#M26432</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-11-08T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL Stored Procedure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411516#M26433</link>
      <description>&lt;P&gt;You need to do it in an explicit SQL pass through, by using either select * from connection to...() or execute () by...&lt;/P&gt;
&lt;P&gt;There have been several posts about this on the communities, your should be able to find it by doing a serach.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411516#M26433</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-08T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL Stored Procedure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411518#M26434</link>
      <description>&lt;P&gt;Thank&amp;nbsp; you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always try searching before posting but didn't spot anything useful, guess I wasn't using right terms so will give it another go using your hints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've gotten it working now using :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	Connect to odbc (datasrc=dbdsn user = user password = password);
		Execute(db.stored_proc) by odbc;
	Disconnect from odbc;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I really don't like having the username and password in plain text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however I've managed to find&lt;/P&gt;&lt;PRE class="sas"&gt;&lt;SPAN&gt;proc pwencode&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;which gets around the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'd still prefer to use the server authentication as I do when connecting to a library though)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/411518#M26434</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-11-08T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL Stored Procedure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/412345#M26512</link>
      <description>&lt;P&gt;I am using the below code to execute a stored procedur but for the chanegs to show in the databse dont i need to commit them? if so can you do that from SAS?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to oracle (user='username' password=password path="path" );&lt;BR /&gt;execute (stored_proc) by oracle;&lt;BR /&gt;disconnect from oracle;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 14:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/412345#M26512</guid>
      <dc:creator>andystad</dc:creator>
      <dc:date>2017-11-10T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Execute SQL Stored Procedure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/412461#M26533</link>
      <description>&lt;P&gt;If your not using transactions you shouldn't need to commit (although may depend on settings)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some info here - &lt;A href="https://dba.stackexchange.com/questions/84769/commit-and-rollback-in-oracle-stored-procedure" target="_self"&gt;https://dba.stackexchange.com/questions/84769/commit-and-rollback-in-oracle-stored-procedure&lt;/A&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 18:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/m-p/412461#M26533</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2017-11-10T18:38:03Z</dc:date>
    </item>
  </channel>
</rss>

