<?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: Possible to Query Keywords in SQL Statement Datasource Using API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2801097#M38928</link>
    <description>&lt;P&gt;Thanks for pointing this out. I'm noticing for a report I'm currently working on I have 3 SQL Server datasources showing under PARTITIONS and 1 SQL Server source showing under EXPRESSIONS. I'm not able to determine the difference or why one shows under expressions. Any further insight is appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 21:23:18 GMT</pubDate>
    <dc:creator>BrandedSaiyan</dc:creator>
    <dc:date>2022-09-27T21:23:18Z</dc:date>
    <item>
      <title>Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2667945#M37593</link>
      <description>&lt;P&gt;Hello Power BI Community,&lt;BR /&gt;&lt;BR /&gt;I recently gained access to the Power BI REST API. I was hoping there would be a way to do a keyword search on the SQL Statement that is part of part of a SQL Server datasource for a dataset for a report. See screen shot below for where I am refering to.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandedSaiyan_0-1659032768129.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/756046i7C0EA2EF1796C326/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrandedSaiyan_0-1659032768129.png" alt="BrandedSaiyan_0-1659032768129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our issue is that instead of using views or stored procedures in our SQL statements, 90% of our reports are using inline SQL code. It's almost impossible to do a dependecy check or impact analysis with our reports written this way and I was hoping the REST API would allow us to do an organization wide search of the SQL statement in all datasources across all datasets so we could search for specific tables and objects.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Using the Datasets - Get Datasources endpoint only gets me the datasource type and connectiondetails (being the server and database) for a given datasource, but not the sql statement.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrandedSaiyan_1-1659033179852.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/756050iD43AB190505A1970/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrandedSaiyan_1-1659033179852.png" alt="BrandedSaiyan_1-1659033179852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there any way that I can query for the SQL statement?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Edit: Adding&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;since his expertise has helped me in the past &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 20:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2667945#M37593</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-07-28T20:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2670340#M37615</link>
      <description>&lt;P&gt;You're in for a treat.&amp;nbsp; You will want to learn about XMLA endpoints, and DMX queries.&amp;nbsp; You can run these against all your datasets and extract the complete M code for all connections (including the embedded SQL).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp; This is only valid for Import Mode connections. For Direct Query you have no control over, or visibility of the queries that are generated on the fly for each visual.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 00:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2670340#M37615</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-07-30T00:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2672967#M37647</link>
      <description>&lt;P&gt;Thank you, do you have any helpful links or resources you'd reccomend?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 12:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2672967#M37647</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-08-01T12:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673044#M37648</link>
      <description>&lt;P&gt;There's DAX Studio , but beyond that the air is pretty thin. Mostly trial and error.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 13:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673044#M37648</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-01T13:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673176#M37649</link>
      <description>&lt;P&gt;I have DAX studio, but I'm unfamilar with any function or code that extracts the M code. I'll do some digging, was just hoping to be pointed in the right direction. Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 14:06:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673176#M37649</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-08-01T14:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673332#M37650</link>
      <description>&lt;P&gt;In DAX Studio connect to your dataset (local or in service)&lt;/P&gt;
&lt;P&gt;Run two queries (individually)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; * &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_PARTITIONS&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; * &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;$SYSTEM&lt;/SPAN&gt;.TMSCHEMA_EXPRESSIONS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Grab the QueryDefinition column from the first and the Expression column from the second&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rinse and repeat for all your datasets.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:08:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673332#M37650</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-01T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673919#M37652</link>
      <description>&lt;P&gt;Thank you! Do you know if I'm able to run this against a shared power bi dataset? Or if it can be ran more in bulk rather than foiir just one dataset at a time? Much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 21:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673919#M37652</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-08-01T21:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673926#M37653</link>
      <description>&lt;P&gt;You have to run it against each dataset (that you have access to) separately.&amp;nbsp; However you can sort of automate that by running the queries from PowerShell.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 22:15:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2673926#M37653</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-01T22:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753587#M38481</link>
      <description>&lt;P&gt;Circling back here. I've been unable to find a way to run these queries from powershell. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753587#M38481</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-09-07T16:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753609#M38482</link>
      <description>&lt;LI-CODE lang="markup"&gt;Invoke-ASCmd -Server "powerbi://api.powerbi.com/v1.0/myorg/&amp;lt;workspace name here&amp;gt;" -Database "&amp;lt;dataset name here&amp;gt;" -Query "select * from `$SYSTEM.TMSCHEMA_PARTITIONS" | Out-File -FilePath c:\users\xxx\Downloads\dmv.xml
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753609#M38482</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-09-07T16:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753652#M38483</link>
      <description>&lt;P&gt;I really appreciate all your help, going to give this a try and get back to you! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2753652#M38483</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-09-07T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2800868#M38922</link>
      <description>&lt;P&gt;This ended up working great!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 20:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2800868#M38922</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2023-05-02T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2800977#M38926</link>
      <description>&lt;P&gt;Note that there is a subtle difference between "PARTITIONS"&amp;nbsp; and "EXPRESSIONS".&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 20:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2800977#M38926</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-09-27T20:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2801097#M38928</link>
      <description>&lt;P&gt;Thanks for pointing this out. I'm noticing for a report I'm currently working on I have 3 SQL Server datasources showing under PARTITIONS and 1 SQL Server source showing under EXPRESSIONS. I'm not able to determine the difference or why one shows under expressions. Any further insight is appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 21:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2801097#M38928</guid>
      <dc:creator>BrandedSaiyan</dc:creator>
      <dc:date>2022-09-27T21:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to Query Keywords in SQL Statement Datasource Using API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2801121#M38930</link>
      <description>&lt;P&gt;Both are queries.&amp;nbsp; Partitions are loaded into the Vertipaq engine.&amp;nbsp; Expressions are not loaded into the engine but may participate in the data pull, especially when other queries depend on them (even when you explicitly state you don't want to refresh them !).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tell by the italicization of the query name in Power Query.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 21:31:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Possible-to-Query-Keywords-in-SQL-Statement-Datasource-Using-API/m-p/2801121#M38930</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-09-27T21:31:23Z</dc:date>
    </item>
  </channel>
</rss>

