<?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: SAS Access/Interface with SQL server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487214#M126924</link>
    <description>&lt;P&gt;The expiry date for the product SAS/ACCESS to SQL Server is 31Dec2017 so you need a new SAS licence to get it working again.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 21:47:32 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-08-15T21:47:32Z</dc:date>
    <item>
      <title>SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426757#M105182</link>
      <description>&lt;P&gt;Hi, I am having a problem with connecting to data in sql database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if I don't have certain driver or if the code I am using is incorrect. Could someone please help guiding me to the right direction?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Below is the product license that I have after running Proc Setinit&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=d11d308e5f&amp;amp;view=fimg&amp;amp;th=160e2a6744cadf57&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_160e2a54565566b7&amp;amp;attbid=ANGjdJ-K3FWAlgeY0Ax37d5vTtM9GHCWoIzW5n-bV8FzWW1b9-WVnYpYhz6sGBnVZt1spgo12SgzJ5ts5sdlEsTADWI3rlQQNo9l1pWS-qHTY4RQMbKy0o7eZpsgMyY&amp;amp;sz=w862-h968&amp;amp;ats=1515642057386&amp;amp;rm=160e2a6744cadf57&amp;amp;zw&amp;amp;atsh=1" border="0" alt="Inline image 1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Below is product installed after I ran Proc Product_Status&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=d11d308e5f&amp;amp;view=fimg&amp;amp;th=160e2a6744cadf57&amp;amp;attid=0.3&amp;amp;disp=emb&amp;amp;realattid=ii_160e2a5c317601c8&amp;amp;attbid=ANGjdJ-QSRYN3R6EmcqrADIbAOzRw0IzEs_8X4uWMeyMOoxa7DP7oqpmZi4uvXJaqYC_BPIJ3dRzKrjyI-6CXsD4XxxD-9juLzXtfVkqmCSuZ0pRkGSTPkQ8HxWUsNk&amp;amp;sz=w958-h560&amp;amp;ats=1515642057386&amp;amp;rm=160e2a6744cadf57&amp;amp;zw&amp;amp;atsh=1" border="0" alt="Inline image 2" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like sas access to sql server is not installed right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also trying these codes to connect and all got error. Which direction of code should I be using? ODBC or sqlsvr?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried sqlsvr and got this error message&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;LIBNAME database1 sqlsvr user=datareader password=myspassword DATAsrc=clientA;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;LIBNAME database1 sqlsvr user=datareader password=XXXXXXX DATAsrc=clientA;&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried ODBC route, I got this message&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;LIBNAME database1 ODBC DSN=clientA User=datareader Password=myspassword ;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;LIBNAME database1 ODBC DSN=clientA User=datareader Password=XXXXXXX;&lt;/P&gt;&lt;P&gt;ERROR: The ODBC engine cannot be found. ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone please point me to the right direction? Should DSN be the name of the database of each client as "ClientA" etc or should it be the name of the server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 03:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426757#M105182</guid>
      <dc:creator>JS3</dc:creator>
      <dc:date>2018-01-11T03:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426760#M105185</link>
      <description>&lt;P&gt;1.&amp;nbsp;Your images didn't make it to the post.&lt;/P&gt;
&lt;P&gt;2. DSN is the name of the data source. It is visible in the list of sources when running ODBC Manager.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 04:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426760#M105185</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-01-11T04:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426783#M105190</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 431px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17790iAAE1F35E1584EB71/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 479px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17791iB09D08D49F3B1389/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; Above are the image again.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 05:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426783#M105190</guid>
      <dc:creator>JS3</dc:creator>
      <dc:date>2018-01-11T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426798#M105198</link>
      <description>&lt;P&gt;Since this is part of a log, don't use a picture for posting. Copy/paste the &lt;EM&gt;text&lt;/EM&gt; to a {i} subwindow. (ctrl-c/ctrl-v in Windows)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/426798#M105198</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-11T08:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/427236#M105346</link>
      <description>&lt;P&gt;Hi KurtBremser,&lt;/P&gt;&lt;P&gt;Here's the copy.paste version of log.&amp;nbsp; Do you have any recommendation on my questions?&amp;nbsp; Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current version: 9.04.01M5P091317&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Expiration: 14FEB2018.&lt;BR /&gt;Grace Period: 45 days (ending 31MAR2018).&lt;BR /&gt;Warning Period: 45 days (ending 15MAY2018).&lt;BR /&gt;System birthday: 13DEC2017.&lt;BR /&gt;Operating System: WX64_WKS.&lt;BR /&gt;Product expiration dates:&lt;BR /&gt;---Base SAS Software&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/STAT&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/GRAPH&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/Secure 168-bit&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/Secure Windows&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS Enterprise Guide&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/ACCESS Interface to PC Files&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/ACCESS Interface to Microsoft SQL Server&lt;BR /&gt;31DEC2017&lt;BR /&gt;---SAS Workspace Server for Local Access&lt;BR /&gt;14FEB2018&lt;BR /&gt;---SAS/ACCESS to Amazon Redshift&lt;BR /&gt;31DEC2017&lt;BR /&gt;---High Performance Suite&lt;BR /&gt;14FEB2018&lt;/P&gt;&lt;P&gt;16 proc Product_Status ; run;&lt;/P&gt;&lt;P&gt;For Base SAS Software ...&lt;BR /&gt;Custom version information: 9.4_M5&lt;BR /&gt;Image version information: 9.04.01M5P090617&lt;BR /&gt;For SAS/STAT ...&lt;BR /&gt;Custom version information: 14.3&lt;BR /&gt;For SAS/GRAPH ...&lt;BR /&gt;Custom version information: 9.4_M5&lt;BR /&gt;For SAS/ACCESS to Amazon Redshift ...&lt;BR /&gt;Custom version information: 9.42&lt;BR /&gt;For High Performance Suite ...&lt;BR /&gt;Custom version information: 2.2_M6&lt;BR /&gt;For SAS/ACCESS Interface to PC Files ...&lt;BR /&gt;Custom version information: 9.4_M5&lt;BR /&gt;NOTE: PROCEDURE PRODUCT_STATUS used (Total process time):&lt;BR /&gt;real time 0.24 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 16:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/427236#M105346</guid>
      <dc:creator>JS3</dc:creator>
      <dc:date>2018-01-12T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487160#M126901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185616"&gt;@JS3&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ERROR: Error in the LIBNAME statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This error message points to a configuration issue in the ODBC environment. Have your Systems Administrator check the odbc.ini and odbcinst.ini files. Chances are there is no stanza for the "clientA" data source. You can try a DSN-less connection. Here is an example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mssql sqlsvr complete="DRIVER={SAS ACCESS to SQL Server};HOST='mysqlserver.mycompany.com';
PORT=1433;UID=myuserid;PWD=mypassword;
EnableScrollableCursors=3";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this doesn't work SAS/ACCESS Interface to Microsoft SQL Server may not be configured properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Configuration is covered here: &lt;A href="https://support.sas.com/en/documentation/install-center.html" target="_self"&gt;https://support.sas.com/en/documentation/install-center.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/installcenter/en/ikfdtnwx6cg/66385/PDF/default/config.pdf" target="_self"&gt;Configuration for Windows&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/installcenter/en/ikfdtnlaxsr/66396/PDF/default/sreq.pdf" target="_self"&gt;Configuration for Linux&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;EnableScrollableCursors=3 is &lt;A href="https://communities.sas.com/t5/SAS-Data-Management/SAS-Error-when-using-quot-delete-from-quot-to-remove-rows-from/m-p/479238#M14963" target="_self"&gt;covered in this post&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487160#M126901</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-08-15T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487214#M126924</link>
      <description>&lt;P&gt;The expiry date for the product SAS/ACCESS to SQL Server is 31Dec2017 so you need a new SAS licence to get it working again.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 21:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487214#M126924</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-15T21:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access/Interface with SQL server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487224#M126929</link>
      <description>&lt;P&gt;The whole licence is expired &lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://communities.sas.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;. What's your system date? Or have you not restarted SAS in the last 3 months?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 22:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-Interface-with-SQL-server/m-p/487224#M126929</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-15T22:46:33Z</dc:date>
    </item>
  </channel>
</rss>

