<?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: How to open a SQL Warehouse query in SQL Warehouse? in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129204#M2190</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166093"&gt;@dylan19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day!!&lt;BR /&gt;&lt;BR /&gt;Thats very frustrating! well just to check&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Did you change the .dbquery.ipynb&lt;/SPAN&gt;&lt;SPAN class=""&gt; file to a &lt;/SPAN&gt;&lt;SPAN class=""&gt;.sql&lt;/SPAN&gt;&lt;SPAN class=""&gt; file in your Git repository. For example, extract the SQL content from the &lt;/SPAN&gt;&lt;SPAN class=""&gt;.ipynb&lt;/SPAN&gt;&lt;SPAN class=""&gt; file (a JSON format) and saved it as plain text in a &lt;/SPAN&gt;&lt;SPAN class=""&gt;.sql&lt;/SPAN&gt;&lt;SPAN class=""&gt; file? (&lt;STRONG&gt; I am not sure on this, just sharing my ideas may be others also confirm on this&lt;/STRONG&gt;) I am also curious to know what could be solution for this issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Just checking?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Is your DAB config is like this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;resources:
  jobs:
    my_sql_job:
      name: RunSQLQuery
      tasks:
        - task_key: run_sql
          sql_task:
            warehouse_id: "&amp;lt;your-sql-warehouse-id&amp;gt;"
            sql_file:
              source: workspace
              path: "/Workspace/Path/To/Your/file.sql"&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Aug 2025 08:07:18 GMT</pubDate>
    <dc:creator>Khaja_Zaffer</dc:creator>
    <dc:date>2025-08-22T08:07:18Z</dc:date>
    <item>
      <title>How to open a SQL Warehouse query in SQL Warehouse?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129200#M2189</link>
      <description>&lt;P&gt;How can you control whether a file is a Notebook or a Query?&amp;nbsp; Long story short - can you do anything to make Databricks recognise a .dbquery.ipynb file as a query and open it in SQL Warehouse?&lt;/P&gt;&lt;P&gt;I created a file in my git folder as a query.&amp;nbsp; All good.&amp;nbsp; Then deployed it into another workspace using a DAB.&amp;nbsp; However, when I open the query file in the new workspace, it opens as a notebook.&amp;nbsp; However, if I open through a git folder in new workspace, it does open in SQL Warehouse.&amp;nbsp; I can't seem to get the DAB-deployed location to open as a query in SQL Warehouse though, even if selected SQL Editor as the context, etc.&lt;/P&gt;&lt;P&gt;The kicker is I need to deploy into a 3rd workspace where (separation of responsibilities) the Databricks user profile won't have access to git...&lt;BR /&gt;Is it as dumb as "you need to copy all the content from workbook into query?"&lt;/P&gt;&lt;P&gt;The main difference is the (new) SQL Warehouse view will show the output of many queries, whereas a notebook only shows the last.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 07:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129200#M2189</guid>
      <dc:creator>dylan19</dc:creator>
      <dc:date>2025-08-22T07:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a SQL Warehouse query in SQL Warehouse?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129204#M2190</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166093"&gt;@dylan19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day!!&lt;BR /&gt;&lt;BR /&gt;Thats very frustrating! well just to check&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Did you change the .dbquery.ipynb&lt;/SPAN&gt;&lt;SPAN class=""&gt; file to a &lt;/SPAN&gt;&lt;SPAN class=""&gt;.sql&lt;/SPAN&gt;&lt;SPAN class=""&gt; file in your Git repository. For example, extract the SQL content from the &lt;/SPAN&gt;&lt;SPAN class=""&gt;.ipynb&lt;/SPAN&gt;&lt;SPAN class=""&gt; file (a JSON format) and saved it as plain text in a &lt;/SPAN&gt;&lt;SPAN class=""&gt;.sql&lt;/SPAN&gt;&lt;SPAN class=""&gt; file? (&lt;STRONG&gt; I am not sure on this, just sharing my ideas may be others also confirm on this&lt;/STRONG&gt;) I am also curious to know what could be solution for this issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Just checking?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;Is your DAB config is like this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;resources:
  jobs:
    my_sql_job:
      name: RunSQLQuery
      tasks:
        - task_key: run_sql
          sql_task:
            warehouse_id: "&amp;lt;your-sql-warehouse-id&amp;gt;"
            sql_file:
              source: workspace
              path: "/Workspace/Path/To/Your/file.sql"&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Aug 2025 08:07:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129204#M2190</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-08-22T08:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a SQL Warehouse query in SQL Warehouse?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129532#M2195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/173840"&gt;@Khaja_Zaffer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;No, I did not change the file extension at all.&amp;nbsp; Given that this was working as a query from the git folder in the UI, presumed that the extension was ok.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might be onto something with the DAB config though.&amp;nbsp; I can't see the specific mechanism that is deploying the file, but the folder was crated from the&amp;nbsp;default-python template.&amp;nbsp; It looks suspiciously like that may be relevant?&amp;nbsp; The file is in src sub-tree, so is being deployed by location.&amp;nbsp; There is no task configured for this file.&lt;/P&gt;&lt;P&gt;The issue is that when the file is opened in the UI from the .bundle location, it is opening as a notebook rather than a query.&lt;/P&gt;&lt;P&gt;CI/CD workflow is: develop in dev Databricks UI and push to git.&amp;nbsp; Deploy DAB bundle from DevOps to dev, test and prod.&amp;nbsp; This works fine for notebooks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 01:38:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129532#M2195</guid>
      <dc:creator>dylan19</dc:creator>
      <dc:date>2025-08-25T01:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to open a SQL Warehouse query in SQL Warehouse?</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129576#M2199</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/166093"&gt;@dylan19&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can we go on a call?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you enabled&amp;nbsp;new SQL Editor? We can check this if you are interested?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 09:24:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-open-a-sql-warehouse-query-in-sql-warehouse/m-p/129576#M2199</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-08-25T09:24:14Z</dc:date>
    </item>
  </channel>
</rss>

