<?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: ODBC Sql Server - Column names are single letters in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735845#M22016</link>
    <description>&lt;P&gt;I'd suggest a Tech Support track would be best to progress this.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Yes, will submit one, and will post solution here if any is found!&lt;/P&gt;&lt;P&gt;Has this problem just started appearing or is it a first-time one?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; First time setting it up. I managed to set it up on a SAS 9.4 install on Windows via the Management Console...&lt;/P&gt;&lt;P&gt;Have you tried another SQL Server database and do you get the same issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Dont have another one set up for now.&lt;/P&gt;&lt;P&gt;When you expand the Server List in EG, you would be expanding the library name to get the list of tables. Just wanted to check if the library name was also truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Library name is fine (but defined by me with &amp;gt;8 cap letters)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 07:46:41 GMT</pubDate>
    <dc:creator>tisbam</dc:creator>
    <dc:date>2021-04-21T07:46:41Z</dc:date>
    <item>
      <title>ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735680#M22007</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to define an ODBC connection to a SQL Server and mapping a libref to it.&lt;/P&gt;&lt;P&gt;Connection seems to be working (tested with isql). Libname statement executes succesfully, however all tables names appear as single letter going through the alphabet...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname myodbc ODBC dsn="DBDSN" user="DBUSER" password="DBPASSWD" schema="dbo";&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tisbam_0-1618938909392.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58403i12D43D9B051EAB89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tisbam_0-1618938909392.png" alt="tisbam_0-1618938909392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 17:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735680#M22007</guid>
      <dc:creator>tisbam</dc:creator>
      <dc:date>2021-04-20T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735741#M22008</link>
      <description>&lt;P&gt;What SAS user interface are you using and what version? What SAS version are you using? Does the LIBREF (MYODBC) show in full? What ODBC driver to SQL Server are you using? Older version drivers can cause problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possible can you test this on another PC and is the behaviour the same?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 19:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735741#M22008</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-20T19:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735760#M22012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is on SAS Viya 3.5 (Not sure if latest ones but last updated September).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAS user interface are you using and what version : Enterprise Guide and SAS Studio V&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does the LIBREF (MYODBC) show in full? Not sure I understand what you mean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What ODBC driver to SQL Server are you using? Microsoft ones (libmsodbcsql-17.5.so.2.1) and UnixODBC (updated version 2.3.7).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735760#M22012</guid>
      <dc:creator>tisbam</dc:creator>
      <dc:date>2021-04-20T20:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735779#M22014</link>
      <description>&lt;P&gt;I'd suggest a Tech Support track would be best to progress this. Has this problem just started appearing or is it a first-time one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried another SQL Server database and do you get the same issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you expand the Server List in EG, you would be expanding the library name to get the list of tables. Just wanted to check if the library name was also truncated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 21:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735779#M22014</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-20T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735831#M22015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329482"&gt;@tisbam&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;maybe have a look at this thread: &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Connection-to-MSSQL-returns-tablename-with-spaces-between-each/m-p/716029#M21401" target="_blank" rel="noopener"&gt;Connection-to-MSSQL-returns-tablename-with-spaces-between-each&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had the same problem - the single letter usually occurs because between each letter is a symbol or space SAS can not work with.&lt;BR /&gt;&lt;BR /&gt;I marked the solution - maybe this helps you too!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 06:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735831#M22015</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2021-04-21T06:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735845#M22016</link>
      <description>&lt;P&gt;I'd suggest a Tech Support track would be best to progress this.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Yes, will submit one, and will post solution here if any is found!&lt;/P&gt;&lt;P&gt;Has this problem just started appearing or is it a first-time one?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; First time setting it up. I managed to set it up on a SAS 9.4 install on Windows via the Management Console...&lt;/P&gt;&lt;P&gt;Have you tried another SQL Server database and do you get the same issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Dont have another one set up for now.&lt;/P&gt;&lt;P&gt;When you expand the Server List in EG, you would be expanding the library name to get the list of tables. Just wanted to check if the library name was also truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; Library name is fine (but defined by me with &amp;gt;8 cap letters)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735845#M22016</guid>
      <dc:creator>tisbam</dc:creator>
      <dc:date>2021-04-21T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735847#M22017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are indeed tables with underscores (_) in the name.&lt;BR /&gt;However when running:&lt;BR /&gt;options validmemname=extend ;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc(dsn=user= password=) ;&lt;BR /&gt;select *&lt;BR /&gt;from connection to odbc(ODBC::SQLTables);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;Tables appear with correct names... So not sure if this is related.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tisbam_0-1618991343451.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58423i9DF080114C6BB481/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tisbam_0-1618991343451.png" alt="tisbam_0-1618991343451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735847#M22017</guid>
      <dc:creator>tisbam</dc:creator>
      <dc:date>2021-04-21T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735886#M22018</link>
      <description>This sounds exactly like my problem.&lt;BR /&gt;&lt;BR /&gt;SAS-Support told me to add these parameteres, did you try this?&lt;BR /&gt;&lt;BR /&gt;These two parameters where added to the DataDirect Driver Datasource Connection information in the odbc.ini&lt;BR /&gt;client charset  = UTF-8&lt;BR /&gt;EnableQuotedIdentifiers=1&lt;BR /&gt;&lt;BR /&gt;And to the sasenv_local I added this parameter&lt;BR /&gt;export EASYSOFT_UNICODE=YES</description>
      <pubDate>Wed, 21 Apr 2021 09:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/735886#M22018</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2021-04-21T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Sql Server - Column names are single letters</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/737195#M22041</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! Thank you. In the meanwhile I also had an answer of the tech support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a bit more details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check that the env variable is EASYSOFT_UNICODE=YES with a new session in StudioV for instance :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%put %quote(%sysget(EASYSOFT_UNICODE)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not, add the following line in these files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;export EASYSOFT_UNICODE=YES&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/opt/sas/viya/config/etc/cas/default/cas_usermods.settings&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;/opt/sas/spre/home/SASFoundation/bin/sasenv_local&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;/opt/sas/viya/config/etc/workspaceserver/default/workspaceserver_usermods.sh&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;/opt/sas/viya/config/etc/sysconfig/compsrv/default/sas-compsrv&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then test access to the libname in a new session.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/ODBC-Sql-Server-Column-names-are-single-letters/m-p/737195#M22041</guid>
      <dc:creator>tisbam</dc:creator>
      <dc:date>2021-04-27T08:50:35Z</dc:date>
    </item>
  </channel>
</rss>

