Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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" tab...
  • Anonymous's avatar
    Anonymous
    7 years ago

    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! :smileysurprised: