<?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 Reading information_schema tables through JDBC connection in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/reading-information-schema-tables-through-jdbc-connection/m-p/50564#M28828</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Unity Catalog as storage for data. I have an external system that establishes connection to Unity Catalog via a JDBC connection using the Databricks driver:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc-odbc-bi#--jdbc-driver" target="_blank"&gt;Configure the Databricks ODBC and JDBC drivers - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I am only able to list Delta Tables through the JDBC connection. I am interested in reading the tables from &lt;STRONG&gt;system&lt;/STRONG&gt;.&lt;STRONG&gt;information_schema&lt;/STRONG&gt; to use some of the tables' metadata. For example, I am using SAS in my external system and my code looks like the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%let MYDBRICKS=&amp;lt;my-db-url&amp;gt;;
%let MYHTTPPATH=&amp;lt;cluster-http-path&amp;gt;;
%let CATALOG=system;
%let SCHEMA=information_schema;
libname dbricks jdbc driverclass="com.databricks.client.jdbc.Driver"
         
url="jdbc:databricks://&amp;amp;MYDBRICKS:443/&amp;amp;SCHEMA;transportMode=http;ssl=1;httpPath=&amp;amp;MYHTTPPATH;AuthMech=11;Auth_Flow=0;Auth_AccessToken=&amp;amp;AZTOKEN;LogLevel=5;QueryPassthrough=true;UseNativeQuery=1;StripCatalogName=0;ConnCatalog=&amp;amp;CATALOG";&lt;/LI-CODE&gt;&lt;P&gt;So, the connection works, and I can see Delta Tables, but no normal SQL tables.&lt;/P&gt;&lt;P&gt;The authentication is based on a Azure token (Microsoft Entra ID), however, I've tested with a Personal Access Token as well, and has no effect.&lt;/P&gt;&lt;P&gt;Is this just a limitation of the JDBC driver itself or is it somehow possible to configure it to also be able to read normal sql tables and not just Delta Tables?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 11:50:47 GMT</pubDate>
    <dc:creator>Immassive</dc:creator>
    <dc:date>2023-11-07T11:50:47Z</dc:date>
    <item>
      <title>Reading information_schema tables through JDBC connection</title>
      <link>https://community.databricks.com/t5/data-engineering/reading-information-schema-tables-through-jdbc-connection/m-p/50564#M28828</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Unity Catalog as storage for data. I have an external system that establishes connection to Unity Catalog via a JDBC connection using the Databricks driver:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/integrations/jdbc-odbc-bi#--jdbc-driver" target="_blank"&gt;Configure the Databricks ODBC and JDBC drivers - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I am only able to list Delta Tables through the JDBC connection. I am interested in reading the tables from &lt;STRONG&gt;system&lt;/STRONG&gt;.&lt;STRONG&gt;information_schema&lt;/STRONG&gt; to use some of the tables' metadata. For example, I am using SAS in my external system and my code looks like the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%let MYDBRICKS=&amp;lt;my-db-url&amp;gt;;
%let MYHTTPPATH=&amp;lt;cluster-http-path&amp;gt;;
%let CATALOG=system;
%let SCHEMA=information_schema;
libname dbricks jdbc driverclass="com.databricks.client.jdbc.Driver"
         
url="jdbc:databricks://&amp;amp;MYDBRICKS:443/&amp;amp;SCHEMA;transportMode=http;ssl=1;httpPath=&amp;amp;MYHTTPPATH;AuthMech=11;Auth_Flow=0;Auth_AccessToken=&amp;amp;AZTOKEN;LogLevel=5;QueryPassthrough=true;UseNativeQuery=1;StripCatalogName=0;ConnCatalog=&amp;amp;CATALOG";&lt;/LI-CODE&gt;&lt;P&gt;So, the connection works, and I can see Delta Tables, but no normal SQL tables.&lt;/P&gt;&lt;P&gt;The authentication is based on a Azure token (Microsoft Entra ID), however, I've tested with a Personal Access Token as well, and has no effect.&lt;/P&gt;&lt;P&gt;Is this just a limitation of the JDBC driver itself or is it somehow possible to configure it to also be able to read normal sql tables and not just Delta Tables?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 11:50:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reading-information-schema-tables-through-jdbc-connection/m-p/50564#M28828</guid>
      <dc:creator>Immassive</dc:creator>
      <dc:date>2023-11-07T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reading information_schema tables through JDBC connection</title>
      <link>https://community.databricks.com/t5/data-engineering/reading-information-schema-tables-through-jdbc-connection/m-p/50629#M28849</link>
      <description>&lt;P&gt;Note: I can see the tables of the system.information schema in the UI of Databricks and read them there.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 11:56:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reading-information-schema-tables-through-jdbc-connection/m-p/50629#M28849</guid>
      <dc:creator>Immassive</dc:creator>
      <dc:date>2023-11-08T11:56:40Z</dc:date>
    </item>
  </channel>
</rss>

