<?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: SQL SERVER within SAS Enterprise in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584987#M75762</link>
    <description>You can use SAS to call a stored procedure from SQL. &lt;BR /&gt;&lt;BR /&gt;In fact, if you use something called SQL Pass through you can pass your commands directly to the server using the native SQL language rather than SAS. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/wuss/2008/dmw/dmw09.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2008/dmw/dmw09.pdf&lt;/A&gt;</description>
    <pubDate>Thu, 29 Aug 2019 16:43:14 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-29T16:43:14Z</dc:date>
    <item>
      <title>SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584970#M75760</link>
      <description>&lt;P&gt;I &amp;nbsp;have&amp;nbsp; years of stored procedures in SQL Server ; where the results are tried and true.&amp;nbsp;&amp;nbsp; Is it possible to call a stored procedure&amp;nbsp; with parameters from SQL SERVER within the SAS enterprise, where I can run statistical analysis where the data set is based on the parameter?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584970#M75760</guid>
      <dc:creator>DNEnterprise</dc:creator>
      <dc:date>2019-08-29T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584986#M75761</link>
      <description>&lt;P&gt;Something like this?&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=development /*User=.... password=....*/);
create table test as
select * 
    from connection to odbc 
       (execute LastName @Last='Johnson'); /*Run this stored procedure*/
disconnect from odbc;
quit;

proc sql;
select mean(YearlyIncome) as Mean
	from test;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My stored procedure finds all customers with a specific last name. I then create a table from the results of the stored procedure, and then can use it in SAS for analysis. I did a simple means in PROC SQL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is another post that might help:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/td-p/411506" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SQL-Stored-Procedure/td-p/411506&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584986#M75761</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2019-08-29T16:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584987#M75762</link>
      <description>You can use SAS to call a stored procedure from SQL. &lt;BR /&gt;&lt;BR /&gt;In fact, if you use something called SQL Pass through you can pass your commands directly to the server using the native SQL language rather than SAS. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/wuss/2008/dmw/dmw09.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2008/dmw/dmw09.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584987#M75762</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-29T16:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584997#M75763</link>
      <description>&lt;P&gt;Thanks for the quick reply; I am definitely going to try to see if I can get this to work.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 17:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584997#M75763</guid>
      <dc:creator>DNEnterprise</dc:creator>
      <dc:date>2019-08-29T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584999#M75765</link>
      <description>&lt;P&gt;The paper&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;linked will give you more details. Also make sure you connection is set up already. My &lt;STRONG&gt;datasrc=Development&lt;/STRONG&gt; option is specific to my connection to my SQL Server database. You should have one of your own.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Peter&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 17:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/584999#M75765</guid>
      <dc:creator>Panagiotis</dc:creator>
      <dc:date>2019-08-29T17:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SERVER within SAS Enterprise</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/585000#M75766</link>
      <description>&lt;P&gt;Very helpful.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 17:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SQL-SERVER-within-SAS-Enterprise/m-p/585000#M75766</guid>
      <dc:creator>DNEnterprise</dc:creator>
      <dc:date>2019-08-29T17:17:40Z</dc:date>
    </item>
  </channel>
</rss>

