<?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 Viya ODBC Connection Not Working (new install) in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/590313#M17278</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181762"&gt;@kgeorge130&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Since you are able to successfully test the connection outside of SAS, I believe the set-up is working fine. In the code, that you have shared I can see the libname statement was also successfully executed. My guess for these errors would be something related to data, like encoding etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend you to open a SAS Tech support track by emailing the details to support@sas.com to help you troubleshoot further.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 10:29:50 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2019-09-20T10:29:50Z</dc:date>
    <item>
      <title>SAS Viya ODBC Connection Not Working (new install)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/590247#M17271</link>
      <description>&lt;P&gt;I am trying to get to the point where we can get data from a MSSQL server and bring that into our Viya Environment for use with CAS and Visual Analytics.&lt;/P&gt;&lt;P&gt;I went through the steps in the deployment guide to configure and verify my ODBC Connection. Results from that were mixed and are listed in the following txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point I am not sure if I have somehing configured wrong in SAS or what the problem is, any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SAS Viya running on CENTOS7&lt;/P&gt;&lt;P&gt;The server is set up with MS-ODBC Drivers and unixODBC&lt;/P&gt;&lt;P&gt;Can make a connection to the SQL server from isql and can run SQL commands to get data back from SQL server.&lt;/P&gt;&lt;P&gt;Here are some steps that I have taken and the configuration files that I think will help in diagnosing the issue.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------&lt;BR /&gt;odbci.ini&lt;/P&gt;&lt;P&gt;[Test]&lt;BR /&gt;Driver=ODBC Driver 13 for SQL Server&lt;BR /&gt;Description=Test FGC SQL&lt;BR /&gt;Server=132.2.2.2&lt;BR /&gt;Database=FGC_CAS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[SQLServer]&lt;BR /&gt;Driver=ODBC Driver 13 for SQL Server&lt;BR /&gt;Description=My MS SQL Server&lt;BR /&gt;Trace=No&lt;BR /&gt;Server=132.2.2.2&lt;/P&gt;&lt;P&gt;odbcinst.ini&lt;/P&gt;&lt;P&gt;[ODBC Driver 13 for SQL Server]&lt;BR /&gt;Description=Microsoft ODBC Driver 13 for SQL Server&lt;BR /&gt;Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.2&lt;BR /&gt;UsageCount=1&lt;/P&gt;&lt;P&gt;[ODBC Driver 17 for SQL Server]&lt;BR /&gt;Description=Microsoft ODBC Driver 17 for SQL Server&lt;BR /&gt;Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.4.so.1.1&lt;BR /&gt;UsageCount=1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SAS Config Files&lt;/P&gt;&lt;P&gt;workspaceserver_usermods.sh&lt;BR /&gt;#!/bin/bash -p&lt;BR /&gt;#&lt;BR /&gt;# Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA, All Rights Reserved&lt;BR /&gt;#&lt;BR /&gt;# workspaceserver_usermods.sh&lt;BR /&gt;#&lt;BR /&gt;# This script extends workspaceserver.sh. Add local environment variables&lt;BR /&gt;# to this file so they will be preserved.&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;USERMODS_OPTIONS=&lt;/P&gt;&lt;P&gt;export ODBCSYSINI=/etc/&lt;BR /&gt;export ODBCINI=/etc/odbc.ini&lt;BR /&gt;export ODBCINST=/etc/odbcinst.ini&lt;BR /&gt;export LD_LIBRARY_PATH=:/opt/microsoft/msodbcsql/lib64/:$LD_LIBRARY_PATH&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;/opt/sas/viya/config/etc/sysconfig/compsrv/default/sas-compsrv&lt;/P&gt;&lt;P&gt;# Config for compute server&lt;/P&gt;&lt;P&gt;#COMPUTESERVER_LOG_PATH="/opt/sas/viya/config/var/log/compsrv/default"&lt;/P&gt;&lt;P&gt;#Uncomment the following line to enable lockdown for the compute server&lt;BR /&gt;#export COMPUTESERVER_LOCKDOWN_ENABLE=1&lt;/P&gt;&lt;P&gt;#ARM_SUBSYS=[ ARM_PROC | ARM_DSIO | ARM_ALL | ARM_NONE ]&lt;BR /&gt;#export ARM_SUBSYS=ARM_PROC&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;export ODBCSYSINI=/etc/&lt;BR /&gt;export ODBCINI=/etc/odbc.ini&lt;BR /&gt;export ODBCINST=/etc/odbcinst.ini&lt;BR /&gt;export LD_LIBRARY_PATH=:/opt/microsoft/msodbcsql/lib64/:$LD_LIBRARY_PATH&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------&lt;BR /&gt;/opt/sas/viya/config/etc/cas/default/cas_usermods.settings&lt;/P&gt;&lt;P&gt;export ODBCSYSINI=/etc&lt;BR /&gt;export ODBCINI=/etc/odbc.ini&lt;BR /&gt;export ODBCINSTINI=/etc/odbcinst.ini&lt;BR /&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/microsoft/msodbcsql17/lib64/&lt;/P&gt;&lt;P&gt;When following the validation from procedures post install here are the results&lt;/P&gt;&lt;P&gt;libname olib odbc dsn="SQLServer" user="sa" password=XXXXXXXXXXXXXXXXXX;&lt;BR /&gt;NOTE: Libref OLIB was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name: SQLServer&lt;/P&gt;&lt;P&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;75&lt;BR /&gt;76 caslib newLib datasource=(srctype="odbc", username="sa",&lt;BR /&gt;77 password=XXXXXXXXXXXXXXXXXX, odbc_dsn="SQLServer");&lt;BR /&gt;NOTE: 'NEWLIB' is now the active caslib.&lt;BR /&gt;NOTE: Cloud Analytic Services added the caslib 'NEWLIB'.&lt;BR /&gt;NOTE: Action to ADD caslib NEWLIB completed for session MYSESSION.&lt;BR /&gt;78&lt;BR /&gt;79 proc casutil;&lt;BR /&gt;NOTE: The UUID 'd21238d1-4b06-b740-885e-320a760686a0' is connected using session MYSESSION.&lt;BR /&gt;80 list files incaslib="newLib";&lt;BR /&gt;Caslib Information&lt;BR /&gt;Library NEWLIB&lt;BR /&gt;Source Type odbc&lt;BR /&gt;Uid sa&lt;BR /&gt;Session local Yes&lt;BR /&gt;Active Yes&lt;BR /&gt;Personal No&lt;BR /&gt;Hidden No&lt;BR /&gt;Transient No&lt;BR /&gt;Odbc_dsn SQLServer&lt;BR /&gt;ERROR: The connection to the data source driver failed.&lt;BR /&gt;ERROR: ERROR: 523 80&lt;BR /&gt;ERROR: Function failed.&lt;BR /&gt;ERROR: The action stopped due to errors.&lt;BR /&gt;NOTE: Cloud Analytic Services processed the combined requests in 0.00303 seconds.&lt;BR /&gt;81 run;&lt;BR /&gt;82&lt;BR /&gt;83 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;96&lt;/P&gt;&lt;P&gt;Also have tried running this code&lt;/P&gt;&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;75&lt;BR /&gt;76 LIBNAME SQLUP ODBC DATAsrc=test SCHEMA=dbo user=sa password=XXXXXXXXXXXXXXXXXX ;&lt;BR /&gt;NOTE: Libref SQLUP was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name: test&lt;BR /&gt;77&lt;BR /&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;91&lt;/P&gt;&lt;P&gt;with this lib sqlup is added a table is diplayed however only the first char of the table name is shown and if you try and open the table a message reads The data set "SQLUP.t" is password protected and cannot be opened.&lt;/P&gt;&lt;P&gt;Have also tried to make a connection to the SQL from Data Explorer on inside Enviroment Manager with the following results when trying to list tables:&lt;/P&gt;&lt;P&gt;The connection to the data source driver failed.&lt;/P&gt;&lt;P&gt;ERROR: 523 80&lt;BR /&gt;Function failed.&lt;BR /&gt;The action stopped due to errors.&lt;/P&gt;&lt;P&gt;code: 2-0-310002&lt;BR /&gt;uri: /casManagement/dataSources/cas~fs~cas-shared-default~fs~TESTSQL/tables&lt;BR /&gt;path: /SASDataExplorer/ui/datasources/children&lt;BR /&gt;traceId: 37866a73d0f05006&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------&lt;BR /&gt;running this code from SASStudio 4&lt;BR /&gt;LIBNAME SQLUP ODBC DATAsrc=test SCHEMA=dbo user=sa password=XXXXXXXXXXXXXXXXXX ;&lt;BR /&gt;NOTE: Libref SQLUP was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name: test&lt;BR /&gt;74&lt;BR /&gt;75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;88&lt;BR /&gt;Lib SQLUP is created and the table is visiable however when you try to open the table the following error is displayed&lt;/P&gt;&lt;P&gt;CLI describe error: [&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 02:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/590247#M17271</guid>
      <dc:creator>kgeorge130</dc:creator>
      <dc:date>2019-09-20T02:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya ODBC Connection Not Working (new install)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/590313#M17278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181762"&gt;@kgeorge130&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Since you are able to successfully test the connection outside of SAS, I believe the set-up is working fine. In the code, that you have shared I can see the libname statement was also successfully executed. My guess for these errors would be something related to data, like encoding etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend you to open a SAS Tech support track by emailing the details to support@sas.com to help you troubleshoot further.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 10:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/590313#M17278</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2019-09-20T10:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya ODBC Connection Not Working (new install)</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/593179#M17354</link>
      <description>&lt;P&gt;So just to let everyone know if you find this post,&amp;nbsp; our issue was with Kerberos Delegation not working as a workaround I had to setup our access to the SQL server with username and password.&amp;nbsp; &amp;nbsp; Also had to change the encoding settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 18:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-ODBC-Connection-Not-Working-new-install/m-p/593179#M17354</guid>
      <dc:creator>kgeorge130</dc:creator>
      <dc:date>2019-10-01T18:51:44Z</dc:date>
    </item>
  </channel>
</rss>

