<?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 set ProviderDataSource for on-premises SQL Server datasources? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-ProviderDataSource-for-on-premises-SQL-Server/m-p/2916439#M39831</link>
    <description>&lt;P&gt;Case closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For on-premises datasource, build partition using &lt;SPAN class=""&gt;MPartitionSource&lt;/SPAN&gt; instead QueryPartitionSource as exemplified by this &lt;A href="https://github.com/PowerBiDevCamp/Tabular-Object-Model-Tutorial/blob/main/Demos/Learning-TOM/Learning-TOM/" target="_self"&gt;sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2022 15:34:05 GMT</pubDate>
    <dc:creator>saber35</dc:creator>
    <dc:date>2022-11-19T15:34:05Z</dc:date>
    <item>
      <title>How to set ProviderDataSource for on-premises SQL Server datasources?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-ProviderDataSource-for-on-premises-SQL-Server/m-p/2915184#M39824</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have published a pbix (lets say it sample.pbix) with complete working dataset model (tables and all relationship).&amp;nbsp; This pbix has an on-premises SQL Server datasource, so I can see "Gateway connection" and "Data source credentials" from the menu "Settings" of the dataset.&amp;nbsp; I can refresh the data manually from Power BI Service (app.powerbi.com) or even SSMS (SQL Server Management Studio).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, my objective is I want to add partition dynamically, each month.&amp;nbsp; So I need to add Table.Partition and its data source programmatically using Table Object Models library.&amp;nbsp; Refer to &lt;A href="https://learn.microsoft.com/en-us/analysis-services/tom/create-tables-partitions-and-columns-in-a-tabular-model?source=recommendations&amp;amp;view=asallproducts-allversions" target="_self"&gt;docs&lt;/A&gt;, I already success connected to my sample dataset, and there should be Model.Datasources property so I can reuse it for the new partition.&amp;nbsp; But I found it empty (for on-premises case).&amp;nbsp; So how do I add new table partition?&amp;nbsp; I have tried add partition without set its Source (using class QueryPartitionSource), but still got no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-ProviderDataSource-for-on-premises-SQL-Server/m-p/2915184#M39824</guid>
      <dc:creator>saber35</dc:creator>
      <dc:date>2022-11-18T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set ProviderDataSource for on-premises SQL Server datasources?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-ProviderDataSource-for-on-premises-SQL-Server/m-p/2916439#M39831</link>
      <description>&lt;P&gt;Case closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For on-premises datasource, build partition using &lt;SPAN class=""&gt;MPartitionSource&lt;/SPAN&gt; instead QueryPartitionSource as exemplified by this &lt;A href="https://github.com/PowerBiDevCamp/Tabular-Object-Model-Tutorial/blob/main/Demos/Learning-TOM/Learning-TOM/" target="_self"&gt;sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 15:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-ProviderDataSource-for-on-premises-SQL-Server/m-p/2916439#M39831</guid>
      <dc:creator>saber35</dc:creator>
      <dc:date>2022-11-19T15:34:05Z</dc:date>
    </item>
  </channel>
</rss>

