<?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: Allow an external user to query SQL table in Databricks in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114860#M4915</link>
    <description>&lt;P&gt;We will need a bit more information. Are you asking:&amp;nbsp;A) how an external user who is skilled at code can invoke a sql query via api. or B) how a non-technical external user can run a query via a simple ui?&lt;/P&gt;&lt;P&gt;If it's option A: then you can create a personal access token in the portal and it can be used to call the sql execution rest api. It works well for small and medium queries. Once the result is over 16MB-20MB, i forget the exact limit, you have to retrieve the result in chunks.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/sql-execution-tutorial" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/sql-execution-tutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/api/azure/workspace/statementexecution" target="_blank"&gt;https://docs.databricks.com/api/azure/workspace/statementexecution&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the example from the docs where they invoke the sql query api from the bash shell.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thackman_0-1744145885130.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15867iAA4D2EC94925918D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thackman_0-1744145885130.png" alt="thackman_0-1744145885130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2025 20:58:35 GMT</pubDate>
    <dc:creator>thackman</dc:creator>
    <dc:date>2025-04-08T20:58:35Z</dc:date>
    <item>
      <title>Allow an external user to query SQL table in Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114822#M4913</link>
      <description>&lt;P&gt;I have a delta table sitting in a schema inside a catalog. How do I allow an external user to query the SQL table via an API? I scrolled through documentation and a lot of resources but it's all so confusing. The AI assistant is way too naive. Can someone point me towards the correct guide?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 11:57:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114822#M4913</guid>
      <dc:creator>adityasimplifix</dc:creator>
      <dc:date>2025-04-08T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an external user to query SQL table in Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114825#M4914</link>
      <description>&lt;P&gt;I think you would want Delta Sharing. &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing&lt;/A&gt; If you're Azure or GCP you need to find the equivalent.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 12:34:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114825#M4914</guid>
      <dc:creator>turagittech</dc:creator>
      <dc:date>2025-04-08T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an external user to query SQL table in Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114860#M4915</link>
      <description>&lt;P&gt;We will need a bit more information. Are you asking:&amp;nbsp;A) how an external user who is skilled at code can invoke a sql query via api. or B) how a non-technical external user can run a query via a simple ui?&lt;/P&gt;&lt;P&gt;If it's option A: then you can create a personal access token in the portal and it can be used to call the sql execution rest api. It works well for small and medium queries. Once the result is over 16MB-20MB, i forget the exact limit, you have to retrieve the result in chunks.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/sql-execution-tutorial" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/sql-execution-tutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/api/azure/workspace/statementexecution" target="_blank"&gt;https://docs.databricks.com/api/azure/workspace/statementexecution&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the example from the docs where they invoke the sql query api from the bash shell.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thackman_0-1744145885130.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15867iAA4D2EC94925918D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thackman_0-1744145885130.png" alt="thackman_0-1744145885130.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 20:58:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114860#M4915</guid>
      <dc:creator>thackman</dc:creator>
      <dc:date>2025-04-08T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an external user to query SQL table in Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114904#M4918</link>
      <description>&lt;P&gt;I think Delta sharing would do the trick but is it possible to query the table via this technique based on certain parameters? In open sharing mechanism, it returns you the data in form of pandas dataframe when using python connector (bearer token method). I also looked through the delta-sharing protocol's GitHub README but there is no specific mention about how to query the database based on certain conditions? Also, is the size restriction efficient when compared to SQL Execution API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 07:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/allow-an-external-user-to-query-sql-table-in-databricks/m-p/114904#M4918</guid>
      <dc:creator>adityasimplifix</dc:creator>
      <dc:date>2025-04-09T07:00:26Z</dc:date>
    </item>
  </channel>
</rss>

