<?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: Connect to SAS server from R via SAS JDBC - dbConnect() Error in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980565#M11099</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/479637"&gt;@andre_young&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally try to verify connection using multiple software packages where possible.&lt;BR /&gt;I would recommend finding another JDBC supporting software be it free, such as &lt;A title="DBeaver Community Edition" href="https://dbeaver.io/" target="_blank" rel="noopener"&gt;DBeaver Community Edition&lt;/A&gt;,&amp;nbsp; or commercial, whichever you can get access to, to try connecting to SAS via JDBC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the past, I have discovered different packages have different level of support to standard protocols such JDBC/ODBC. Even Driver providers, have different level of supporting/implementing Driver Specifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a thought&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 15:02:46 GMT</pubDate>
    <dc:creator>AhmedAl_Attar</dc:creator>
    <dc:date>2025-12-10T15:02:46Z</dc:date>
    <item>
      <title>Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980465#M11094</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I am trying to connect to work SAS server from R, to extract datasets for further processing/analysis in R.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Due to corporate constraints, the only solution available is SAS JDBC type of connection, using IOM server subprotocol.&lt;/P&gt;&lt;P&gt;I have been trying to make this work with our IT and SAS support on and off for months now. I had them install the SAS JDBC drivers on my machine, and via trial and error arrived at the below piece of R code to establish the connection:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;r&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;library&lt;SPAN class=""&gt;(&lt;/SPAN&gt;RJDBC&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
library&lt;SPAN class=""&gt;(&lt;/SPAN&gt;rJava&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
.jinit&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;

driver &lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt; JDBC&lt;SPAN class=""&gt;(&lt;/SPAN&gt;driverClass &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"com.sas.rio.MVADriver"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; 

conn &lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt; dbConnect&lt;SPAN class=""&gt;(&lt;/SPAN&gt;
  driver&lt;SPAN class=""&gt;,&lt;/SPAN&gt; 
  &lt;SPAN class=""&gt;"jdbc:sasiom://xxx.xxx.xxx:12345"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; 
  &lt;SPAN class=""&gt;"user"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; 
  &lt;SPAN class=""&gt;"pwd"&lt;/SPAN&gt; 
&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;running the above code I am able to create the driver object running JDBC() function, however, dbConnect throws the below exception:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;r&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;Error &lt;SPAN class=""&gt;in&lt;/SPAN&gt; dbConnect&lt;SPAN class=""&gt;(&lt;/SPAN&gt;driver&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"jdbc:sasiom://xxx.xxx.xxx:12345"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;  &lt;SPAN class=""&gt;:&lt;/SPAN&gt; 
  Unable to connect JDBC to jdbc&lt;SPAN class=""&gt;:&lt;/SPAN&gt;sasiom&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;xxx.xxx.xxx&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;12345&lt;/SPAN&gt;
  JDBC ERROR&lt;SPAN class=""&gt;:&lt;/SPAN&gt; com&lt;SPAN class=""&gt;/&lt;/SPAN&gt;sas&lt;SPAN class=""&gt;/&lt;/SPAN&gt;util&lt;SPAN class=""&gt;/&lt;/SPAN&gt;ChainedExceptionInterface&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Interestingly, using the dbConnect function with a modified connection string,&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;r&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;conn &lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt; dbConnect&lt;SPAN class=""&gt;(&lt;/SPAN&gt;
  driver&lt;SPAN class=""&gt;,&lt;/SPAN&gt; 
  &lt;SPAN class=""&gt;"jdbc:sasiom://xxx.xxx.xxx:12345?user=user&amp;amp;password=pwd"&lt;/SPAN&gt;
&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives a different error:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;r&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;Error &lt;SPAN class=""&gt;in&lt;/SPAN&gt; dbConnect&lt;SPAN class=""&gt;(&lt;/SPAN&gt;driver&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"jdbc:sasiom://xxx"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;:&lt;/SPAN&gt; 
  Unable to connect JDBC to jdbc&lt;SPAN class=""&gt;:&lt;/SPAN&gt;sasiom&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;xxx
  JDBC ERROR&lt;SPAN class=""&gt;:&lt;/SPAN&gt; com&lt;SPAN class=""&gt;/&lt;/SPAN&gt;sas&lt;SPAN class=""&gt;/&lt;/SPAN&gt;util&lt;SPAN class=""&gt;/&lt;/SPAN&gt;RBBase&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately neither of the error messages don't give too much to work with.&lt;/P&gt;&lt;P&gt;We have tried experimenting with different Java versions, and I have tripple checked that all required JAR files are accessible via CLASSPATH.&lt;/P&gt;&lt;P&gt;I have extensively researched the internet and asked LLMs to no avail, and so now my last hope is the community hivemind power..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java version "1.8.0_60"&lt;/P&gt;&lt;P&gt;SAS version 9.4 Grid M8&lt;/P&gt;&lt;P&gt;JDBC drivers 9.4&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Dec 2025 13:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980465#M11094</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-09T13:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980498#M11095</link>
      <description>&lt;P&gt;UPDATE:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Managed to resolve the above JDBC Errors, however, now there is a new challenge which popped up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks like we have (finally!) connected to the SAS server, but, there seems to be some confusion as to which type of server the JDBC driver expects:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"JDBC ERROR: Unable to establish connection. The client has connected to a SAS Metadata Server (v1.0) when it intended to connect to a SAS Workspace Server."&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It feels like we are getting close to the finish line on this one - it looks as it pertains the actual SAS Server, rather than my local Java / R / JDBC setup. If anyone has any ideas what this error means and how to fix it, please let me know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 15:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980498#M11095</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-09T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980500#M11096</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/479637"&gt;@andre_young&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look into this guide for connection examples&amp;nbsp;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/api/docsets/jdbcref/9.4/content/jdbcref.pdf?locale=en" target="_blank" rel="noopener"&gt;SAS 9.4 Drivers for JDBC: Cookbook&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look on page 26 (32/58), at the bottom, there is JDBC URL connection example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 16:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980500#M11096</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-12-09T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980531#M11097</link>
      <description>&lt;P&gt;thanks Ahmed, I have verified the&amp;nbsp;&lt;SPAN&gt;JDBC URL I am using against the connection example in the cookbook, and it appears to be in the correct format.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 10:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980531#M11097</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-10T10:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980564#M11098</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/479637"&gt;@andre_young&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thanks Ahmed, I have verified the&amp;nbsp;&lt;SPAN&gt;JDBC URL I am using against the connection example in the cookbook, and it appears to be in the correct format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But are you still using the URL that points to the Metadata server instead of the server that can actually give you data?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 14:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980564#M11098</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-12-10T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980565#M11099</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/479637"&gt;@andre_young&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally try to verify connection using multiple software packages where possible.&lt;BR /&gt;I would recommend finding another JDBC supporting software be it free, such as &lt;A title="DBeaver Community Edition" href="https://dbeaver.io/" target="_blank" rel="noopener"&gt;DBeaver Community Edition&lt;/A&gt;,&amp;nbsp; or commercial, whichever you can get access to, to try connecting to SAS via JDBC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the past, I have discovered different packages have different level of support to standard protocols such JDBC/ODBC. Even Driver providers, have different level of supporting/implementing Driver Specifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a thought&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980565#M11099</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-12-10T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980566#M11100</link>
      <description>I am still waiting for my company SAS support to confirm the correct URL - it is a complete black box - I have no visibility into the SAS server(s) configuration.&lt;BR /&gt;&lt;BR /&gt;The URL I am using is the one given to me by our SAS experts specifically for the JDBC connection, and it is the same URL which my SAS Enterprise Guide uses to estabish connection (which works fine)</description>
      <pubDate>Wed, 10 Dec 2025 15:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980566#M11100</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-10T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980568#M11101</link>
      <description>I am unfortunately completely limited in what software I can use by company security policies, and have no room to experiment with other JDBC supporting software</description>
      <pubDate>Wed, 10 Dec 2025 15:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980568#M11101</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-10T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980570#M11102</link>
      <description>&lt;P&gt;If you can't get the SAS admin to tell you what you need you might ask one of the SAS users to use the code in the answer to this thread to extract the information on the application servers from the metadata server.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/td-p/846988" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/How-to-extract-SAS-Management-console-information-SASApp/td-p/846988&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 15:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980570#M11102</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-12-10T15:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980571#M11103</link>
      <description>&lt;P&gt;Just as an FYI, Enterprise Guide is a .NET software which does not use JDBC protocol.&lt;/P&gt;
&lt;P&gt;EG uses connection profile, which stores information such as&lt;/P&gt;
&lt;P&gt;- Connection name:&lt;/P&gt;
&lt;P&gt;- Connection Description:&lt;/P&gt;
&lt;P&gt;- Metadata Server name&lt;/P&gt;
&lt;P&gt;- Port : 8591 (Default)&lt;/P&gt;
&lt;P&gt;- UserName:&lt;/P&gt;
&lt;P&gt;- UserPW:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your username&amp;nbsp; has to be registered in the SAS Metadata base in order to authenticate you first, before it can figure out your authorization settings.&lt;BR /&gt;So if you don't have to SAS Enterprise Guide, contact your "SAS experts"/SAS Admin and verify you are registered and authorized to access the SAS deployment&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 16:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980571#M11103</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-12-10T16:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to SAS server from R via SAS JDBC - dbConnect() Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980759#M11104</link>
      <description>&lt;P&gt;***** SOLVED (by using SAS Workspace Server address rather than a Metadata server address) ****&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you everyone who comented on this topic&amp;nbsp; - I finally managed to get a SAS Workspace Server address from my SAS Admin (rather than a Metadata server address which they gave me initially to use with the JDBC connection), and that indeed solved the problem!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 09:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Connect-to-SAS-server-from-R-via-SAS-JDBC-dbConnect-Error/m-p/980759#M11104</guid>
      <dc:creator>andre_young</dc:creator>
      <dc:date>2025-12-15T09:04:08Z</dc:date>
    </item>
  </channel>
</rss>

