<?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: Increase the number of records kept per Subscription in dbo.SubscriptionHistory in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926662#M19908</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="309937" data-lia-user-login="AustinS" class="lia-mention lia-mention-user"&gt;AustinS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make the change in stored procedure&amp;nbsp;&lt;SPAN&gt;dbo.AddSubscriptionHistoryEntry to only let it delete entries which are older than 60 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The thing to remmeber is when you upgrade to newer version from Jan 2021 to May 2021 or may be more latest, you will always need to make sure these maintainence sp's preserve your customize code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Glad you find out the solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hasham&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 21:07:15 GMT</pubDate>
    <dc:creator>HashamNiaz</dc:creator>
    <dc:date>2021-06-28T21:07:15Z</dc:date>
    <item>
      <title>Increase the number of records kept per Subscription in dbo.SubscriptionHistory</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926043#M19897</link>
      <description>&lt;P&gt;I am wondering if there is anyway to configure the number of history records per subscription kept in dbo.SubscriptionHistory. From my testing, I can only see the previous 10 subscription history records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: If I have a scheduled Power BI report refresh set to refresh every hour, I cannot see if the refresh failed yesterday or what the error messages might have been as I only have the previous 10 hours of refreshes for that subscription.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if there is any configuration option or how you keep a longer refresh history.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926043#M19897</guid>
      <dc:creator>AustinS</dc:creator>
      <dc:date>2021-06-28T14:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Increase the number of records kept per Subscription in dbo.SubscriptionHistory</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926459#M19903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="309937" data-lia-user-login="AustinS" class="lia-mention lia-mention-user"&gt;AustinS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can increase the Retention days for Execution logs by setting [ExecutionLogDaysKept] propterty to [-1];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/sql/reporting-services/tools/server-properties-advanced-page-reporting-services?view=sql-server-ver15" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/sql/reporting-services/tools/server-properties-advanced-page-reporting-services?view=sql-server-ver15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jackworthen.com/2020/07/06/changing-the-report-execution-log-retention-policy-in-sql-server-reporting-services/" target="_blank" rel="noopener"&gt;https://jackworthen.com/2020/07/06/changing-the-report-execution-log-retention-policy-in-sql-server-reporting-services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will keep Report Execution Logs but it seems there is no setting to increase subscription retention period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hasham&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 18:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926459#M19903</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-06-28T18:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Increase the number of records kept per Subscription in dbo.SubscriptionHistory</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926641#M19907</link>
      <description>&lt;P&gt;Upon further evaluation, it is pretty clear that it is hard coded to be 10 records within the stored procedure dbo.AddSubscriptionHistoryEntry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code snippet from dbo.AddSubscriptionHistoryEntry&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DELETE FROM [dbo].[SubscriptionHistory] WHERE [SubscriptionID] = @SubscriptionID AND [SubscriptionHistoryID] NOT IN (
		SELECT TOP (10) [SubscriptionHistoryID]
		  FROM [dbo].[SubscriptionHistory]
		  WHERE [SubscriptionID] = @SubscriptionID
		  ORDER BY [StartTime] DESC )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty hesistant to make any changes to the stored procedures of the Power BI Report Server.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926641#M19907</guid>
      <dc:creator>AustinS</dc:creator>
      <dc:date>2021-06-28T20:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Increase the number of records kept per Subscription in dbo.SubscriptionHistory</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926662#M19908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="309937" data-lia-user-login="AustinS" class="lia-mention lia-mention-user"&gt;AustinS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make the change in stored procedure&amp;nbsp;&lt;SPAN&gt;dbo.AddSubscriptionHistoryEntry to only let it delete entries which are older than 60 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The thing to remmeber is when you upgrade to newer version from Jan 2021 to May 2021 or may be more latest, you will always need to make sure these maintainence sp's preserve your customize code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Glad you find out the solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hasham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 21:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Increase-the-number-of-records-kept-per-Subscription-in-dbo/m-p/1926662#M19908</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-06-28T21:07:15Z</dc:date>
    </item>
  </channel>
</rss>

