<?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 Producing Dynamic SQL in Dataflow in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3577613#M1370</link>
    <description>&lt;P&gt;As we can't currently pass parameters from Pipeline to Dataflow in Fabric, a workaround is to access Dynamic SQL from a txt file.&lt;/P&gt;&lt;P&gt;We can use Table.FirstValue to read the first row of a txt file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;DynSQLTable = Csv.Document(Web.Contents("&lt;A href="https://DOMAIN.sharepoint.com/Documents/DynSQLTest.txt" target="_blank" rel="noopener"&gt;https://DOMAIN.sharepoint.com/Documents/DynSQLTest.txt&lt;/A&gt;"), [Delimiter = "|", Columns = 1, QuoteStyle = QuoteStyle.None]),&lt;BR /&gt;DynSQLString = Table.FirstValue(DynSQLTable),&lt;BR /&gt;Source = Oracle.Database("SERVER:PORT/SERVICENAME", [Query = DynSQLString , HierarchicalNavigation = true])&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 13:30:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-11T13:30:25Z</dc:date>
    <item>
      <title>Producing Dynamic SQL in Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3577613#M1370</link>
      <description>&lt;P&gt;As we can't currently pass parameters from Pipeline to Dataflow in Fabric, a workaround is to access Dynamic SQL from a txt file.&lt;/P&gt;&lt;P&gt;We can use Table.FirstValue to read the first row of a txt file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;DynSQLTable = Csv.Document(Web.Contents("&lt;A href="https://DOMAIN.sharepoint.com/Documents/DynSQLTest.txt" target="_blank" rel="noopener"&gt;https://DOMAIN.sharepoint.com/Documents/DynSQLTest.txt&lt;/A&gt;"), [Delimiter = "|", Columns = 1, QuoteStyle = QuoteStyle.None]),&lt;BR /&gt;DynSQLString = Table.FirstValue(DynSQLTable),&lt;BR /&gt;Source = Oracle.Database("SERVER:PORT/SERVICENAME", [Query = DynSQLString , HierarchicalNavigation = true])&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 13:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3577613#M1370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-11T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Dynamic SQL in Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3579710#M1378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;&lt;BR /&gt;Are you sharing any information or asking any query.&lt;BR /&gt;With the above context I am not able to get a bigger picture of it.&lt;BR /&gt;Could you please share few more details of your scenario and about your issue?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 12:40:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3579710#M1378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-12T12:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Dynamic SQL in Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3579952#M1380</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just sharing a workaround for passing parameters into a Dynamic SQL query as we can't directly pass parameters to a Dataflow.&lt;/P&gt;&lt;P&gt;The snippet above was intended for anyone who wanted to do the same.&lt;/P&gt;&lt;P&gt;If you create a basic Gen2 Dataflow, and add a datasource....&lt;/P&gt;&lt;P&gt;then modify the code generated to read the Dynamic SQL from a file and parse it into the Query.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 14:33:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3579952#M1380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-12T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Producing Dynamic SQL in Dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3746180#M2055</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Very useful - thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Producing-Dynamic-SQL-in-Dataflow/m-p/3746180#M2055</guid>
      <dc:creator>Steve_B77</dc:creator>
      <dc:date>2024-03-06T13:10:38Z</dc:date>
    </item>
  </channel>
</rss>

