<?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 queries with 9.1 and 9.2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Server-queries-with-9-1-and-9-2/m-p/65456#M14206</link>
    <description>I don't know the answer, but I have suspicions.  Under Unix, SAS/Access to SQL/Server actually runs against an ODBC third-party add-on.  Your support group may have changed the ODBC product that they are using in Unix.  Are the 9.1 and 9.2 versions of SAS on the same physical box?  There are a lot of moving parts to get from Unix to SQL/Server, so it could be something else has changed.  From the 9.2 documentation,&lt;BR /&gt;
&lt;BR /&gt;
"SAS/ACCESS Interface to Microsoft SQL Server has been tested and certified against Data Direct Technologies Connect ODBC and Data Direct SequeLink ODBC products"&lt;BR /&gt;
&lt;BR /&gt;
It could also be that the new environment does not support all of the features that the old one did.&lt;BR /&gt;
&lt;BR /&gt;
My first effort at debugging the problem would be to see if I could run any query against the database, as you are using fairly advanced features in the first query.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
    <pubDate>Fri, 13 May 2011 00:20:30 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-05-13T00:20:30Z</dc:date>
    <item>
      <title>SQL Server queries with 9.1 and 9.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Server-queries-with-9-1-and-9-2/m-p/65455#M14205</link>
      <description>I have one unusual situation where in my sql query works fine under 9.1. But under 9.2 the program never finishes execution. At the end I have to abruptly exit the program.&lt;BR /&gt;
I am using Unix SAS. Let me know if any one has answer.&lt;BR /&gt;
&lt;BR /&gt;
Here is my query&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
connect to sqlsvr(user=aaaa pwd='xxxxxxxxxxx' datasrc=pppp);&lt;BR /&gt;
            ** All Edit checks **;&lt;BR /&gt;
            Execute(select dbo.fnlds(projectname, 'eng') as Project, CRFDrafts.ProjectId, CRFDrafts.CrfdraftId&lt;BR /&gt;
                  into #tmpDrafts&lt;BR /&gt;
                  from projects&lt;BR /&gt;
                  inner join CRFdrafts on CrfDrafts.projectId = projects.projectid&lt;BR /&gt;
            ) by sqlsvr;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
            create table mmnecdl2 as select *&lt;BR /&gt;
            from connection to sqlsvr&lt;BR /&gt;
            (&lt;BR /&gt;
                  Select Draftchecks.CRFDraftId as CRFDraftId, ProjectId, Isvalid, Draftchecks.DraftCheckName as DraftCheckName, Project, created&lt;BR /&gt;
                  from #tmpDrafts&lt;BR /&gt;
                  inner Join Draftchecks on Draftchecks.crfdraftid = #tmpDrafts.crfdraftid&lt;BR /&gt;
                  and isvalid = 1&lt;BR /&gt;
                  and created &amp;gt;= "&amp;amp;startdt"&lt;BR /&gt;
                  &lt;BR /&gt;
                  order by Project&lt;BR /&gt;
            );</description>
      <pubDate>Thu, 12 May 2011 23:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Server-queries-with-9-1-and-9-2/m-p/65455#M14205</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-05-12T23:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server queries with 9.1 and 9.2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Server-queries-with-9-1-and-9-2/m-p/65456#M14206</link>
      <description>I don't know the answer, but I have suspicions.  Under Unix, SAS/Access to SQL/Server actually runs against an ODBC third-party add-on.  Your support group may have changed the ODBC product that they are using in Unix.  Are the 9.1 and 9.2 versions of SAS on the same physical box?  There are a lot of moving parts to get from Unix to SQL/Server, so it could be something else has changed.  From the 9.2 documentation,&lt;BR /&gt;
&lt;BR /&gt;
"SAS/ACCESS Interface to Microsoft SQL Server has been tested and certified against Data Direct Technologies Connect ODBC and Data Direct SequeLink ODBC products"&lt;BR /&gt;
&lt;BR /&gt;
It could also be that the new environment does not support all of the features that the old one did.&lt;BR /&gt;
&lt;BR /&gt;
My first effort at debugging the problem would be to see if I could run any query against the database, as you are using fairly advanced features in the first query.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Fri, 13 May 2011 00:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Server-queries-with-9-1-and-9-2/m-p/65456#M14206</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-05-13T00:20:30Z</dc:date>
    </item>
  </channel>
</rss>

