<?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 EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246541#M17497</link>
    <description>&lt;P&gt;1. Are you running on a server?&lt;/P&gt;
&lt;P&gt;2. What does proc setinit say?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Have you tried including user and pwd?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 05:13:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-28T05:13:04Z</dc:date>
    <item>
      <title>SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246526#M17493</link>
      <description>&lt;P&gt;I am able to connect an SQL SERVER ODBC data source by selecting from the menu &lt;EM&gt;File&amp;nbsp;&lt;/EM&gt;&amp;gt; &lt;EM&gt;Open&lt;/EM&gt; &amp;gt; &lt;EM&gt;ODBC...&lt;/EM&gt; &amp;nbsp;and then &lt;EM&gt;Machine Data Source&lt;/EM&gt;, &lt;EM&gt;mydatasourcename&lt;/EM&gt; (of type user). &amp;nbsp;I then select a table and all is fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By checking properties of the resulting link, advanced, here is the connection string:&lt;/P&gt;&lt;P&gt;ODBC;Provider=MSDASQL.1;Extended Properties="DSN=mydatasourcename;Description=description of my data source anme;UID=XXXXX;Trusted_Connection=Yes;APP=SAS Enterprise Guide 7.1;WSID=YYYY;DATABASE=ZZZZZ"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I try to create a connection, e.g. ,via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME libref ODBC DATAsrc='mydatasourcename';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver&lt;BR /&gt;specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried many variations to the above LIBNAME statement and all result in the same error. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone able to offer a suggestion of how to get this to work? &amp;nbsp;I need access to the DSN programmatically as I would like to run a stored procedure. &amp;nbsp;I am using SAS Enterprise Guide 7.11.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 04:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246526#M17493</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-01-28T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246532#M17495</link>
      <description>&lt;P&gt;Don't use libref as your library name, that's confusing and probably a potential issue down the road.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens with the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME mylib ODBC dsn='mydatasourcename' schema=dbo;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 04:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246532#M17495</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T04:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246537#M17496</link>
      <description>I get the same error</description>
      <pubDate>Thu, 28 Jan 2016 05:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246537#M17496</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-01-28T05:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246541#M17497</link>
      <description>&lt;P&gt;1. Are you running on a server?&lt;/P&gt;
&lt;P&gt;2. What does proc setinit say?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Have you tried including user and pwd?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 05:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246541#M17497</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T05:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246544#M17498</link>
      <description>&lt;P&gt;1. I am using a local installation of Enterprise Guide, but running it on a server (i.e. via Tools &amp;gt; Connections)&lt;/P&gt;&lt;P&gt;2. PROC SETINT includes&amp;nbsp;&lt;EM&gt;SAS/ACCESS Interface to ODBC&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;3. Yes - have used both user and pwd&lt;/P&gt;&lt;P&gt;&amp;nbsp;e.g.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIBNAME mylib ODBC dsn='mydsn' user=myuser&amp;nbsp;schema=myschema pwd=mypwd;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 05:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246544#M17498</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-01-28T05:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246545#M17499</link>
      <description>&lt;P&gt;I'm out of idea's, hopefully, someone else can help further &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 05:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246545#M17499</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T05:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246550#M17500</link>
      <description>&lt;P&gt;Okay. I am running a local installation of Enterprise Guide, but SAS is installed on a server. &amp;nbsp;I was using a DSN on my local machine, but when the DSN is created on the server, I can connect programmatically via:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sql odbc dsn='mydsn' user=myuser pw=mypw schema=myschema;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I am not happy with this as a solution because I don't have remote access to the server in order to create DSNs as required and also,&amp;nbsp;I don't understand &amp;nbsp;why when I use the menu options (File &amp;gt; Open &amp;gt; ODBC...) I can connect via a DSN on my local machine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to use a local DSN programmatically, do I need to go to Tools &amp;gt;&amp;nbsp;Connections and then select &amp;lt;do not use a profile&amp;gt; and then at the top of my program window, select "Local" for selected server? &amp;nbsp;If so, then the problem (I believe) would be that I have SAS/ACCESS Interface to ODBC on the server side but not on&amp;nbsp;my local PC (i.e. running&amp;nbsp;PROC SETINT no longer shows&amp;nbsp;&lt;EM&gt;SAS/ACCESS Interface to ODBC). &amp;nbsp;&lt;/EM&gt;Would this be correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 06:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246550#M17500</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-01-28T06:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246554#M17501</link>
      <description>&lt;P&gt;You can specify the complete ODBC connection definition on a LIBNAME statement like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname TEST odbc noprompt = "server=MYSQLServer;DRIVER=SQL Server;Trusted Connection=yes" &lt;BR /&gt;QUALIFIER = Mydatabase SCHEMA = Myschema;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use File\Open\ODBC in EG you are using your PC to connect to the database so all the setup has to be on your PC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the LIBNAME statement you are using your SAS Application Server to connect, so all the setup must be done on the server. Fortunately you can but only for Windows-based SAS servers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 07:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246554#M17501</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-01-28T07:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246556#M17502</link>
      <description>&lt;P&gt;It sounds like you want a DSN-less connection where you specify everything that is needed in code so you don't have to set up a DSN on the machine. There is an example of this (and the method used to find all the parameters you need) in the SAS Global Forum 2014 paper &lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf" target="_self"&gt;An Insider’s Guide to SAS/ACCESS®&lt;/A&gt;&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf" target="_self"&gt;Interface to ODBC&lt;/A&gt;&amp;nbsp;by&amp;nbsp;Jeff Bailey from SAS Institute.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 07:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246556#M17502</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2016-01-28T07:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246558#M17503</link>
      <description>&lt;P&gt;In your setup, when you use the &lt;U&gt;File menu&lt;/U&gt; of EG, EG accesses your local DSN, and then automagically transfers the data to the server and runs a step there to read the data.&lt;/P&gt;
&lt;P&gt;Anything you do in &lt;U&gt;SAS code&lt;/U&gt; runs in the Workspace Server instance on your SAS server, and has only access to resources defined on the server.&lt;/P&gt;
&lt;P&gt;The server can never see DSNs defined on your PC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wanted to access your local DSN from SAS code, you would need a local SAS installation, and the necessary licenses for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 07:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246558#M17503</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-28T07:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246612#M17504</link>
      <description>&lt;P&gt;I don't know the reasons for your&amp;nbsp;SAS server setup, but one aspect is that a server is a way of centralize data management. Benefits would be better control, and reuse of data and logic between users/projects.&lt;/P&gt;
&lt;P&gt;So even if you can work on your own, it's not&amp;nbsp;sure if that's the best in all situations. So getting help by defining DSN is maybe not only a bad thing. This is true for any library and table definitions in the metadata.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246612#M17504</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-01-28T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246646#M17505</link>
      <description>&lt;P&gt;mduarte,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kurt's comments are key to understanding the data flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you build a DSN using the file menu, the data are read to your local PC and transferred to the remote server for processing.&amp;nbsp; If the data are large, this can take a lot more time than directly processing on the remote server.&amp;nbsp; It will double the I/O and can increase the elapsed time even more depending on the connection speeds.&amp;nbsp; Databases and servers are often connected via multi-gigabit lines and workstations may only be 100 megabit; the connection between workstations and servers in different physical facilities can be even slower.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 15:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246646#M17505</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2016-01-28T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG 7.11 LIBNNAME ODBC says Data source name not found (but can connect via menu)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246790#M17510</link>
      <description>&lt;P&gt;Great link - If I could accept more than one answer&amp;nbsp;I would! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 00:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-7-11-LIBNNAME-ODBC-says-Data-source-name-not-found-but/m-p/246790#M17510</guid>
      <dc:creator>mduarte</dc:creator>
      <dc:date>2016-01-29T00:31:32Z</dc:date>
    </item>
  </channel>
</rss>

