<?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: How to make an ODBC library available for all SAS users in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513262#M15959</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, thanks for the reply.&lt;/P&gt;&lt;P&gt;Can you elaborate? This is what I've got in the ODBC administrator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="odbc_system_dsn.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24923i8954DCB798AC6930/image-size/large?v=v2&amp;amp;px=999" role="button" title="odbc_system_dsn.png" alt="odbc_system_dsn.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="odbc_user_dsn.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24924i163EDB342F8E6DF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="odbc_user_dsn.png" alt="odbc_user_dsn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 12:14:54 GMT</pubDate>
    <dc:creator>lfabbri</dc:creator>
    <dc:date>2018-11-15T12:14:54Z</dc:date>
    <item>
      <title>How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513247#M15957</link>
      <description>&lt;P&gt;Hello everyone, I've successfully created an ODBC library in SAS Management Console 9.4 to read/write data in a Microsoft Sql Server database.&lt;/P&gt;&lt;P&gt;The library seems correctly configured, I can register tables from the MSSql database.&lt;/P&gt;&lt;P&gt;This is the LIBNAME statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIBNAME bdpapl ODBC  NOPROMPT="dsn=MSSQL_BDPAPL;Trusted_Connection=yes"  SCHEMA=DBO ;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS Data Integration Studio I've successfully created and executed a job that reads and writes data using tables registered with this library.&lt;/P&gt;&lt;P&gt;My problem is that when other SAS users want to execute similar operations, they got a failure with the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  Line 129: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

  Line 129: ERROR: Error in the LIBNAME statement.

  Line 133: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

  Line 133: ERROR: Error in the LIBNAME statement.

  Line 161: ERROR: Libref BDPAPL is not assigned.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I verified that all the SAS users can see the library and the associated registered tables in the Inventory menu of Data Integration Studio, but for some reasons the job fail when they try to execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What have I to do to make the ODBC library working for all the SAS users?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 11:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513247#M15957</guid>
      <dc:creator>lfabbri</dc:creator>
      <dc:date>2018-11-15T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513257#M15958</link>
      <description>&lt;P&gt;Did you create a &lt;STRONG&gt;USER&lt;/STRONG&gt; or &lt;STRONG&gt;SYSTEM&lt;/STRONG&gt; DSN in the ODBC manager?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User = only accessible to the relevant uses&lt;/P&gt;
&lt;P&gt;System = accessible across all users&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen this be the cause of this sort of thing in the past.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513257#M15958</guid>
      <dc:creator>AngusLooney</dc:creator>
      <dc:date>2018-11-15T12:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513262#M15959</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, thanks for the reply.&lt;/P&gt;&lt;P&gt;Can you elaborate? This is what I've got in the ODBC administrator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="odbc_system_dsn.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24923i8954DCB798AC6930/image-size/large?v=v2&amp;amp;px=999" role="button" title="odbc_system_dsn.png" alt="odbc_system_dsn.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="odbc_user_dsn.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24924i163EDB342F8E6DF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="odbc_user_dsn.png" alt="odbc_user_dsn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513262#M15959</guid>
      <dc:creator>lfabbri</dc:creator>
      <dc:date>2018-11-15T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513284#M15964</link>
      <description>&lt;P&gt;So, your libname is using the DSN created as &lt;STRONG&gt;User&lt;/STRONG&gt; DSN, so it will only work for your account. If it were calling a &lt;STRONG&gt;System&lt;/STRONG&gt; DSN it would work for all users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the looks of things, using 'sqlserver_native_client' in place of 'MSSQL_BDPAPL' ought to fix it - assuming the&amp;nbsp;&lt;SPAN&gt;sqlserver_native_client&lt;/SPAN&gt; points to the right database/schema etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think....&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 13:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513284#M15964</guid>
      <dc:creator>AngusLooney</dc:creator>
      <dc:date>2018-11-15T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513327#M15970</link>
      <description>&lt;P&gt;The error indeed was the use of a User DSN instead of a System DSN. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/513327#M15970</guid>
      <dc:creator>lfabbri</dc:creator>
      <dc:date>2018-11-15T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/515505#M16006</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 08:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/515505#M16006</guid>
      <dc:creator>AngusLooney</dc:creator>
      <dc:date>2018-11-23T08:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make an ODBC library available for all SAS users</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/515680#M16015</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245294"&gt;@lfabbri&lt;/a&gt; - If you would like to try ODBC connections to SQL Server without using DSNs and the ODBC Administrator at all try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sqlsrvr odbc noprompt = "server=MyServerName;DRIVER=SQL Server Native Client 10.0;Trusted_Connection=yes;" qualifier = "MyDatabase" schema = "MySchema";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 22:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-make-an-ODBC-library-available-for-all-SAS-users/m-p/515680#M16015</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-23T22:44:03Z</dc:date>
    </item>
  </channel>
</rss>

