<?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 Error in sqlsrv libname statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-in-sqlsrv-libname-statement/m-p/498358#M132417</link>
    <description>&lt;P&gt;Dear all ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to connect to a sql server db ( on another server ). I'm not using DSN names , the sql server db uses windows authentification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Statement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;libname sdmlib SQLSVR 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=abcde;Data Source=datasourcenameab;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=wsid;Use Encryption for Data=False;Tag with column collation when possible=False';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( data source name , workstation id and catalog are example values )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Incorrect syntax for this LIBNAME statement. This engine does not accept a physical name.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Sep 2018 11:26:24 GMT</pubDate>
    <dc:creator>StefDM</dc:creator>
    <dc:date>2018-09-24T11:26:24Z</dc:date>
    <item>
      <title>Error in sqlsrv libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-sqlsrv-libname-statement/m-p/498358#M132417</link>
      <description>&lt;P&gt;Dear all ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to connect to a sql server db ( on another server ). I'm not using DSN names , the sql server db uses windows authentification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Statement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;libname sdmlib SQLSVR 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=abcde;Data Source=datasourcenameab;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=wsid;Use Encryption for Data=False;Tag with column collation when possible=False';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( data source name , workstation id and catalog are example values )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Incorrect syntax for this LIBNAME statement. This engine does not accept a physical name.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-sqlsrv-libname-statement/m-p/498358#M132417</guid>
      <dc:creator>StefDM</dc:creator>
      <dc:date>2018-09-24T11:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in sqlsrv libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-in-sqlsrv-libname-statement/m-p/498367#M132425</link>
      <description>&lt;P&gt;When you submit a statement like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname &amp;lt;name&amp;gt; &amp;lt;engine&amp;gt; &amp;lt;quoted string&amp;gt;;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SAS expects the quoted string to be a physical file name. What you want to do is probably something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname &amp;lt;name&amp;gt; &amp;lt;engine&amp;gt; &amp;lt;engine-option&amp;gt;=&amp;lt;quoted string&amp;gt;;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in your actual case something like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   libname sdmlib SQLSVR complete='Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=abcde;Data Source=datasourcenameab;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=wsid;Use Encryption for Data=False;Tag with column collation when possible=False';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or possibly, use the PROMPT= or NOPROMPT=. The COMPLETE option display a dialog box if some options are missing; the PROMPT options always displays options in a dialog box, the NOPROMPT never displays a dialog box (but just fails if the options are not complete).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 12:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-in-sqlsrv-libname-statement/m-p/498367#M132425</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-09-24T12:07:12Z</dc:date>
    </item>
  </channel>
</rss>

