cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
danyfloresp Frequent Visitor
Frequent Visitor

dbo.SubscriptionsHistory table depuration

Hi! 

 

We were looking for metadata information in the ReportServer database to obtain the history, length and status of schedule refresh processes. We discovered the "dbo.SubscriptionsHistory" table. However, there's a weird behavior: in DEV server, the table contains the entire history since installing; in PROD server, the table only contains the last 10 days. 

 

Is there any configuration that we can move (either at instance or database level) to let the table keep more history days? 

 

Regards!  

1 ACCEPTED SOLUTION

Accepted Solutions
stpnet Established Member
Established Member

Re: dbo.SubscriptionsHistory table depuration

Looking at the code in the ReportServer DB I can see there's a stored procedure called

 

[dbo].[AddSubscriptionHistoryEntry]

This seems to add entries but then also deletes all entries except the last ten (the ten is hard coded)

 

Looking at the data on my servers this seems to be what is happening. So I don't understand how you're seeing more than ten entires on your dev systems.

 

I'm guessing you could amend the stored proc! Smiley Surprised

View solution in original post

4 REPLIES 4
stpnet Established Member
Established Member

Re: dbo.SubscriptionsHistory table depuration

I think this is controlled via an amdin setting about general execution history retention

 

Conection to your SSRS Server usings SSMS. I have to use the URL to my server http://ServerName/ReportServerURLPath/ fo this connection and you obviosuly need to be an admin.

ssrs_pbi_admin.png

 

 

 

 

 

 

 

 

 

 

Right click and sleect propeties, then I think it's this page

 

ssrs_pbi_admin_logging.png

danyfloresp Frequent Visitor
Frequent Visitor

Re: dbo.SubscriptionsHistory table depuration

Hi! Thank you so much for the answer. 

 

I don't have admin access to the production server, but checking the develompent one, that configuration has a 60 days expiration period, but in the table we have information since late 2018. 

 

Is there any other place where this can be configured? 

 

Regards, 

stpnet Established Member
Established Member

Re: dbo.SubscriptionsHistory table depuration

Looking at the code in the ReportServer DB I can see there's a stored procedure called

 

[dbo].[AddSubscriptionHistoryEntry]

This seems to add entries but then also deletes all entries except the last ten (the ten is hard coded)

 

Looking at the data on my servers this seems to be what is happening. So I don't understand how you're seeing more than ten entires on your dev systems.

 

I'm guessing you could amend the stored proc! Smiley Surprised

View solution in original post

danyfloresp Frequent Visitor
Frequent Visitor

Re: dbo.SubscriptionsHistory table depuration

Thank you for your answer! 

I'll check the stored procedure in dev. However, I doubt the IT team will let us modify a system stored procedure :(. 

 

Regards!

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)