<?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: SQL to Alter Refresh Schedules in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-to-Alter-Refresh-Schedules/m-p/684008#M10212</link>
    <description>&lt;P&gt;It's not advisable to directly edit the tables behind the PBIRS instance. A better approach is to use the supported APIs to alter the subscriptions. You can use the PowerShell Reporting Services Tools (see&amp;nbsp;&lt;A href="https://github.com/Microsoft/ReportingServicesTools" target="_blank"&gt;https://github.com/Microsoft/ReportingServicesTools&lt;/A&gt;). It has get-RSSubscription/set-RSSubscription cmdlets that would let you find and alter subsciptions.&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 00:47:58 GMT</pubDate>
    <dc:creator>d_gosbell</dc:creator>
    <dc:date>2019-05-06T00:47:58Z</dc:date>
    <item>
      <title>SQL to Alter Refresh Schedules</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-to-Alter-Refresh-Schedules/m-p/682955#M10203</link>
      <description>&lt;P&gt;Gday,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On our DEV server, Id like to restrict users from creating long term refresh schedules to reduce the data impact. My plan is to use the "stop this schedule on" mechanism and stop all active schedules after one week. I have found 3 (!!) tables I need to edit on order for this to work correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ReportServer.dbo.Schedule&lt;/LI&gt;&lt;LI&gt;ReportServer.dbo.Subscriptions (Stored in XML!!!!)&lt;/LI&gt;&lt;LI&gt;msdb.dbo.sysschedules&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Each table has an "end date" but each is in a different format. While it is possible to do what I want in a scheduled SQL task, Im wondering if anyone else has considered this or can offer an alternative solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 02:26:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-to-Alter-Refresh-Schedules/m-p/682955#M10203</guid>
      <dc:creator>cnschulz</dc:creator>
      <dc:date>2019-05-03T02:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Alter Refresh Schedules</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/SQL-to-Alter-Refresh-Schedules/m-p/684008#M10212</link>
      <description>&lt;P&gt;It's not advisable to directly edit the tables behind the PBIRS instance. A better approach is to use the supported APIs to alter the subscriptions. You can use the PowerShell Reporting Services Tools (see&amp;nbsp;&lt;A href="https://github.com/Microsoft/ReportingServicesTools" target="_blank"&gt;https://github.com/Microsoft/ReportingServicesTools&lt;/A&gt;). It has get-RSSubscription/set-RSSubscription cmdlets that would let you find and alter subsciptions.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 00:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/SQL-to-Alter-Refresh-Schedules/m-p/684008#M10212</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2019-05-06T00:47:58Z</dc:date>
    </item>
  </channel>
</rss>

