cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cnschulz Member
Member

SQL to Alter Refresh Schedules

Gday, 

 

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:

 

  • ReportServer.dbo.Schedule
  • ReportServer.dbo.Subscriptions (Stored in XML!!!!)
  • msdb.dbo.sysschedules

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.

 

Cheers

 

1 REPLY 1
Super User III
Super User III

Re: SQL to Alter Refresh Schedules

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 https://github.com/Microsoft/ReportingServicesTools). It has get-RSSubscription/set-RSSubscription cmdlets that would let you find and alter subsciptions.

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!