<?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: Strange table names when accessing MS SQL server via ODBC in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520383#M4021</link>
    <description>&lt;P&gt;Probably not the driver, maybe something else.&lt;/P&gt;
&lt;P&gt;I can't see "Step" table in your print screen - verify by scrolling.&lt;/P&gt;
&lt;P&gt;Also, check with your SQL Server what tables/views are actually stored in this schema, by using SQL Server Management Studio, or other client of choice. Potentially talk to your DBA to get your parameters/autorization right.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 14:54:37 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-12-11T14:54:37Z</dc:date>
    <item>
      <title>Strange table names when accessing MS SQL server via ODBC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520372#M4020</link>
      <description>&lt;P&gt;I am trying to establish a connection to MS SQL server databse from a SAS program using a standard ODBC driver&lt;/P&gt;&lt;P&gt;The code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname testdb odbc noprompt="server=serv1;DRIVER=SQL Server;Trusted Connection=yes" DATABASE=mydb schema=dbo PRESERVE_TAB_NAMES=YES;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works without problems, however the table names inside a dataset are strangely encoded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 263px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25553iA94FA43A77AEC945/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know is it because of the dirve or am i doing something wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i try to print the table data like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=testdb.Step;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produces the error:&lt;BR /&gt;proc print data=testdb.Step;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: File TESTDB.Step.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;25 run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 14:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520372#M4020</guid>
      <dc:creator>dimy4</dc:creator>
      <dc:date>2018-12-11T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange table names when accessing MS SQL server via ODBC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520383#M4021</link>
      <description>&lt;P&gt;Probably not the driver, maybe something else.&lt;/P&gt;
&lt;P&gt;I can't see "Step" table in your print screen - verify by scrolling.&lt;/P&gt;
&lt;P&gt;Also, check with your SQL Server what tables/views are actually stored in this schema, by using SQL Server Management Studio, or other client of choice. Potentially talk to your DBA to get your parameters/autorization right.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 14:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520383#M4021</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-12-11T14:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange table names when accessing MS SQL server via ODBC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520442#M4027</link>
      <description>&lt;P&gt;This is the exact problem - instead of the table names there are some strange #NNNNNN number names under testdb which you can see on the screenshot. It should be normal table names shown&lt;/P&gt;&lt;P&gt;There is a Step table on this database and also other tables. The exact amount of tables is the same as amount of #NNNNN names on a screenshot. So, I suppose one of them is actually "Step" table..&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why are they getting these strange names?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 17:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520442#M4027</guid>
      <dc:creator>dimy4</dc:creator>
      <dc:date>2018-12-11T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Strange table names when accessing MS SQL server via ODBC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520809#M4102</link>
      <description>&lt;P&gt;1) Try this libname&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;libname&lt;/SPAN&gt; testdb odbc dsn&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydb schema&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;dbo user=xxx password=xxxx&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2)try&lt;/P&gt;
&lt;P&gt;options validmemname=extend;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 13:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Strange-table-names-when-accessing-MS-SQL-server-via-ODBC/m-p/520809#M4102</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-12-12T13:58:39Z</dc:date>
    </item>
  </channel>
</rss>

