Temporary enable and disable SSRS subscriptions


--Code Snippet

--To Check Subscription Status.

USE ReportServer

GO

SELECT dbo.Subscriptions.Description,

       dbo.[Catalog].Name,

       dbo.Users.UserName,

       InactiveFlags

FROM dbo.Subscriptions

     INNER JOIN dbo.[Catalog]

     ON dbo.Subscriptions.Report_OID = dbo.[Catalog].ItemID

     INNER JOIN dbo.Users

     ON dbo.Subscriptions.OwnerID = dbo.Users.UserID



--Temporary disables subscriptions while data warehouse is unavailable



UPDATE dbo.Subscriptions

SET InactiveFlags = 1

GO

--After this you can find, all the subscription where disabled until you again enable it.

--Again enable subscriptions.



UPDATE dbo.Subscriptions

SET InactiveFlags = 0

GO

Comments

  1. Great article,Thank you for sharing this awesome Post.
    Keep updating....

    MSBI Online Training Hyderabad

    ReplyDelete
  2. Great article, Thank you for sharing this valuable info with us.
    Keep updating...

    ReplyDelete
  3. your valuable information and time. Please keep updating.
    Msbi Online Training in India
    Msbi Training

    ReplyDelete
  4. I like reading the above article because it clearly explains everything and is both entertaining and effective. Thank you for your time and consideration, and best of luck with your future articles.

    Data Engineering Services 

    Machine Learning Services

    Data Analytics Solutions

    Data Modernization Solutions

    ReplyDelete

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Exception deserializing the package "The process cannot access the file because it is being used by another process."