Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the owner of a subscription in SQL Server Reporting Services

The previous DBA here set up some SQL Server Reporting Services Reports to run automatically and email the report to users. When he left his accaount was disabled and now they don't work. The status on the subscription reads:

Failure sending mail: The permissions granted to user 'OURDOMAIN\old_DBA_Username' are insufficient for performing this operation.

Is there an easy way to change the owner, I have found the Owner field in the RS database in the subscriptions table and have though of just changing that, but don't want to break our production report service?

The other option of course is to create a new subscription and delete the old, but surly there is a better way.

like image 626
KiwiNige Avatar asked Jan 13 '09 03:01

KiwiNige


People also ask

How do I manage my SSRS subscriptions?

Browse the web portal of a report server (SSRS Native Mode). In the web portal, select My Subscriptions on the toolbar and navigate to the subscription you want to modify or delete. Right-click the report and select Delete.

How do you change SQL Reporting Services account?

To do this follow these steps: Open Reporting Services Configuration Manager, and then connect to the instance of SQL Server Reporting Services. Click Microsoft service Identity on the left pane. Change the account and the password in the Account text box and the Password text box, and then click Apply.

What are the two methods of delivery for report subscriptions?

Standard and data-driven subscriptions Reporting Services supports two kinds of subscriptions: standard and data-driven.


1 Answers

The solution posted here did the trick for me. Basically you midify the subscription owner on the SSRS database directly by running the script below.

DECLARE @OldUserID uniqueidentifier
DECLARE @NewUserID uniqueidentifier
SELECT @OldUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\OldUser'
SELECT @NewUserID = UserID FROM dbo.Users WHERE UserName = 'DOMAINA\NewUser'
UPDATE dbo.Subscriptions SET OwnerID = @NewUserID WHERE OwnerID = @OldUserID
like image 138
ntombela Avatar answered Sep 30 '22 15:09

ntombela