<?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 using 'with' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954792#M372879</link>
    <description>&lt;P&gt;It would help if you posted your complete Passthru query. Then we might understand what it is trying to do and be able to offer more helpful advice. In my experience SQL dialects don't necessarily translate well because of custom additions like the one you have found.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 21:18:36 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-12-30T21:18:36Z</dc:date>
    <item>
      <title>sql server using 'with'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954779#M372871</link>
      <description>&lt;P&gt;I am using a pass through connection to sql server.&amp;nbsp; I am attempting to translate from a pass through connection to hadoop.&amp;nbsp; Can anyone look a the code below and see if this looks correct.&amp;nbsp; The normal way I use the pass through to sql server isn't working due to an extra open parenthesis, but when I remove it I still get an error.&amp;nbsp; The open parens prior to select distinct, as well as the open parens in front of WITH are the issue.&amp;nbsp; If I add another close parens at the end it errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;connect to sqlsvr (dsn=chsrproddb &amp;amp;_log_host);&lt;BR /&gt;CREATE TABLE FullData AS&lt;BR /&gt;SELECT * FROM CONNECTION TO sqlsvr &lt;BR /&gt;(select distinct &lt;BR /&gt;(WITH this_srvc_auth AS&lt;BR /&gt;( SELECT&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 15:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954779#M372871</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2024-12-30T15:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: sql server using 'with'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954786#M372877</link>
      <description>&lt;P&gt;Everything between the () in a statement like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from connection to XXX ( .... ) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;has to be valid syntax on the database that the connection named XXX is pointing to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a HADOOP question perhaps you should ask it on a HADOOP forum?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 18:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954786#M372877</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-30T18:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: sql server using 'with'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954792#M372879</link>
      <description>&lt;P&gt;It would help if you posted your complete Passthru query. Then we might understand what it is trying to do and be able to offer more helpful advice. In my experience SQL dialects don't necessarily translate well because of custom additions like the one you have found.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 21:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/954792#M372879</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-12-30T21:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: sql server using 'with'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/955285#M373092</link>
      <description>&lt;P&gt;1. Have your query work in a SQL Server interface (e.g., SQL Server Management Studio).&lt;/P&gt;
&lt;P&gt;2. Attach thew full log in you post.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 08:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-server-using-with/m-p/955285#M373092</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2025-01-07T08:38:40Z</dc:date>
    </item>
  </channel>
</rss>

