<?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 schema name like aaa\bbb giving CLI error: Incorrect syntax near '\' in libname statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/schema-name-like-aaa-bbb-giving-CLI-error-Incorrect-syntax-near/m-p/247749#M17556</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am declaring a library as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname r sqlsvr datasrc=sqlsvrdw qualifier=Analytics schema='Classic\zzzz' user='classic\yyyy' password='xxx';&lt;/P&gt;&lt;P&gt;(Note: zzz and yyy are like&amp;nbsp;ksachar)&lt;/P&gt;&lt;P&gt;I am getting an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near '\'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can access other schemas in analytics database where teh schema name is like "schema" anything that has '\' is giving error.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 14:18:07 GMT</pubDate>
    <dc:creator>ksachar</dc:creator>
    <dc:date>2016-02-03T14:18:07Z</dc:date>
    <item>
      <title>schema name like aaa\bbb giving CLI error: Incorrect syntax near '\' in libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/schema-name-like-aaa-bbb-giving-CLI-error-Incorrect-syntax-near/m-p/247749#M17556</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am declaring a library as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname r sqlsvr datasrc=sqlsvrdw qualifier=Analytics schema='Classic\zzzz' user='classic\yyyy' password='xxx';&lt;/P&gt;&lt;P&gt;(Note: zzz and yyy are like&amp;nbsp;ksachar)&lt;/P&gt;&lt;P&gt;I am getting an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near '\'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can access other schemas in analytics database where teh schema name is like "schema" anything that has '\' is giving error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/schema-name-like-aaa-bbb-giving-CLI-error-Incorrect-syntax-near/m-p/247749#M17556</guid>
      <dc:creator>ksachar</dc:creator>
      <dc:date>2016-02-03T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: schema name like aaa\bbb giving CLI error: Incorrect syntax near '\' in libname statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/schema-name-like-aaa-bbb-giving-CLI-error-Incorrect-syntax-near/m-p/247753#M17557</link>
      <description>&lt;P&gt;AFAIK, the backslash cannot be used in a &lt;EM&gt;regular identifier&lt;/EM&gt; in MS SQL server, but it may be used in a &lt;EM&gt;delimited identifier&lt;/EM&gt; (means the identifier is enclosed in angular brackets).&lt;/P&gt;
&lt;P&gt;So if somebody managed to create the schema by using a delimited identifier, and you have no means to transfer the delimiters through the ODBC engine, you cannot access the schema.&lt;/P&gt;
&lt;P&gt;- try using angular brackets&lt;/P&gt;
&lt;P&gt;- have the schema renamed with a valid regular identifier&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see&lt;/P&gt;
&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/ms175874.aspx" target="_self"&gt;Database Identifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/schema-name-like-aaa-bbb-giving-CLI-error-Incorrect-syntax-near/m-p/247753#M17557</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-03T14:27:42Z</dc:date>
    </item>
  </channel>
</rss>

