<?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: Connect to and query data from ODW in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500138#M32133</link>
    <description>&lt;P&gt;I don't know ODW but Googling and based on your statement that you can access it with SQL Server Manager I assume it's just a database on a SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May be below paper will be helpful to you:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Sep 2018 03:21:48 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-09-30T03:21:48Z</dc:date>
    <item>
      <title>Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500118#M32132</link>
      <description>&lt;P&gt;I'm new to SAS and am looking for a step-by-step guide on how to connect to&amp;nbsp;and query data from&amp;nbsp;ODW. I'm able to successfully connect to and query data from EDWard, but only because someone in my team walked me through all the steps. Is there a document available for how to accomplish the connection setup to ODW? I'm very familiar with querying data from ODW using SQL Server Management Studio, so I not asking for help with the SQL part of the solution; just how to make the connection and any SAS syntax that needs to go around the actual SQL query.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 19:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500118#M32132</guid>
      <dc:creator>stuartward1</dc:creator>
      <dc:date>2018-09-29T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500138#M32133</link>
      <description>&lt;P&gt;I don't know ODW but Googling and based on your statement that you can access it with SQL Server Manager I assume it's just a database on a SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May be below paper will be helpful to you:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 03:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500138#M32133</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-09-30T03:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500144#M32134</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134592"&gt;@stuartward1&lt;/a&gt;&amp;nbsp;- connecting how? Help us to help you by providing more information - connecting via SAS code, metadata connection, what SAS/Access products do you have, etc?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 04:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500144#M32134</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2018-09-30T04:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500152#M32135</link>
      <description>&lt;P&gt;Virtually any query you have built in SQL Server Management Studio can be run unchanged in SAS by wrapping it in an SQL passthrough query that looks like the following. The SQL Server connection string you require should be known by your SAS administrator. Firstly we need to know what SAS product you are connecting with. The likely options are either SAS/ACCESS to SQL Server or SAS/ACCESS to ODBC.&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 (noprompt = "server=MyServerName;DRIVER=SQL Server;Trusted Connection=yes;");
  create table Want  as 
  select * from connection to odbc
  (---- Put your SQL Server query here
   )
  ;
  disconnect from odbc;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Sep 2018 06:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500152#M32135</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-30T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500233#M32138</link>
      <description>&lt;P&gt;1. Set up a DSN in your User DSN (ODBC Control Panel).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Use a libname to point SAS to the server. Then it shows up as a SAS libname and no issues needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname demo ODBC dsn=myDSN schema=dbo;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I can't recall if the DSN or SCHEMA needs quotes, I think the paper someone else linked to above covers this in more details though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134592"&gt;@stuartward1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm new to SAS and am looking for a step-by-step guide on how to connect to&amp;nbsp;and query data from&amp;nbsp;ODW. I'm able to successfully connect to and query data from EDWard, but only because someone in my team walked me through all the steps. Is there a document available for how to accomplish the connection setup to ODW? I'm very familiar with querying data from ODW using SQL Server Management Studio, so I not asking for help with the SQL part of the solution; just how to make the connection and any SAS syntax that needs to go around the actual SQL query.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 22:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/500233#M32138</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-30T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to and query data from ODW</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/507841#M32363</link>
      <description>&lt;P&gt;My apologies for the extremely long delay in replying and marking a solution. I appreciate all the replies to my question and the document that was provided was very helpful. And one additional apology for thinking this was the sub-community for just my company and not the entire SAS community (again, very new to SAS/community and that's the reason my acronyms wouldn't have made much sense; just for clarification, ODW is a SQL Server database).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was just one additional tweak I'll mention that I needed to make for the connection to be successful... I used this syntax in my proc sql statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;proc sql;&lt;/P&gt;&lt;P align="left"&gt;connect to &lt;EM&gt;&lt;STRONG&gt;SQLSVR&lt;/STRONG&gt;&lt;/EM&gt; as myODWtestCon(DSN=ODW user=XXXXXXX password=XXXXXXXX);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I first tried&amp;nbsp;"ODBC" (in place of SQLSVR), the connection would fail, but was successful with SQLSVR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again to all that replied.&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 17:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Connect-to-and-query-data-from-ODW/m-p/507841#M32363</guid>
      <dc:creator>stuartward1</dc:creator>
      <dc:date>2018-10-26T17:29:42Z</dc:date>
    </item>
  </channel>
</rss>

