<?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 error opening connection in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189997#M3935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how I forgot this, but I wrote an ODBC related paper for SAS Global Forum. You may find it useful. Here is a link: &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf" title="http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running "%put %superq(sysdbmsg)" after running my LIBNAME statement. It didn't display the connection string that was used by the driver. If you are on UNIX it may work. I am using a Windows environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another trick you can use is to enable ODBC tracing or the SASTRACE= option. Either one of these will show you what is being sent to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options sastrace=',,d,d' sastraceloc=saslog nostsuffix;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no way of proving this, but I imagine that there is something missing in your DSN. The SGF paper discusses how to find the DSN definition. You can try a DSNless connection by using a LIBNAME statement similar to this one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;/* If this works, your problem is probably in the DSN */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;LIBNAME myvert VERTICA SERVER=mySRV DATABASE=testdb SCHEMA=public&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER=myuser PASSWORD=mypasswd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce the error message you received by omitting the SERVER=option in the above&amp;nbsp; LIBNAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 14:16:30 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2014-04-17T14:16:30Z</dc:date>
    <item>
      <title>odbc error opening connection</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189995#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while trying to register tables on a newly defined ODBC connection I get the error:&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [Vertica][ODBC] (10430) Not enough information provided to establish a connection &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to the data source and specified to not prompt for more information.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the libname:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME VGPAMAS VERTICA&amp;nbsp; DATABASE=GP_AMAS&amp;nbsp; DSN=Vertica_GP_AMAS&amp;nbsp; SCHEMA=public&amp;nbsp; USER=dbadmin&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can connect to this database from the server that is running the sas mid tier using ISQL, so the ODBC setup seems OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ODBC env variables are defined in sasenv_local and the workspace manager was validated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the libname has the correct odbc DSN and user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what else could be provided that is missing? I've gone through everything I could find in the manuals re: odbc and vertica and can't find what might be missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 04:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189995#M3933</guid>
      <dc:creator>mklybor</dc:creator>
      <dc:date>2014-02-28T04:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: odbc error opening connection</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189996#M3934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to get this to work? If not, can you share the contents of your DSN and a more complete SAS log?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 20:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189996#M3934</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2014-04-16T20:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: odbc error opening connection</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189997#M3935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how I forgot this, but I wrote an ODBC related paper for SAS Global Forum. You may find it useful. Here is a link: &lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf" title="http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/SAS039-2014.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running "%put %superq(sysdbmsg)" after running my LIBNAME statement. It didn't display the connection string that was used by the driver. If you are on UNIX it may work. I am using a Windows environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another trick you can use is to enable ODBC tracing or the SASTRACE= option. Either one of these will show you what is being sent to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options sastrace=',,d,d' sastraceloc=saslog nostsuffix;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no way of proving this, but I imagine that there is something missing in your DSN. The SGF paper discusses how to find the DSN definition. You can try a DSNless connection by using a LIBNAME statement similar to this one.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;/* If this works, your problem is probably in the DSN */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;LIBNAME myvert VERTICA SERVER=mySRV DATABASE=testdb SCHEMA=public&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER=myuser PASSWORD=mypasswd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce the error message you received by omitting the SERVER=option in the above&amp;nbsp; LIBNAME statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 14:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189997#M3935</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2014-04-17T14:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: odbc error opening connection</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189998#M3936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Registering tables is requiring a running Workspace-server proces able to access the external table.&lt;/P&gt;&lt;P&gt;Some DBA oriented people are setting up the connection getting the external password from the SAS-metadata.&lt;/P&gt;&lt;P&gt;There can be a pitfall with this approach not knowing wich password is coming in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be a lot to review on this.&lt;/P&gt;&lt;P&gt;- Verify you can access the tables from EGuide using the workspace server.&lt;/P&gt;&lt;P&gt;- You can add/try to register those tables using EGuide 5.1 (not SMC) &lt;/P&gt;&lt;P&gt;When there is an error message try to snapshot that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last possible circumvention is:&lt;/P&gt;&lt;P&gt;- pre allocate the librarie using the autoexec_usermods&lt;/P&gt;&lt;P&gt;- Define the libarie as SAS-Base type not as Vertica&lt;/P&gt;&lt;P&gt;All options specific to Vertica will be ignore in that case.&lt;/P&gt;&lt;P&gt;When something goes wrong with the SQL code generation that should also be by-passed.&lt;/P&gt;&lt;P&gt;Work than back to determine the point that is causing your issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 15:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189998#M3936</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-17T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: odbc error opening connection</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189999#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an additional thought: If you are using a Library defined in metadata you may want to try displaying the generated LIBNAME statement. It may be an issue with your metadata definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/odbc-error-opening-connection/m-p/189999#M3937</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2014-04-22T15:34:59Z</dc:date>
    </item>
  </channel>
</rss>

