Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 subscription owner

Author  Topic 

tikus
Starting Member

31 Posts

Posted - 2007-01-31 : 19:14:01
When somebody schedule report in Report Manager, that person becomes the owner of the subscription. The problem is, when that person left the company and we disable his windows login, all his subscriptions failed......

1. How do we schedule a job by using a standard login instead of individual windows login?

2. Is there a way I can change the owner of all the existing subscriptions?

Thanks!

jhermiz

3564 Posts

Posted - 2007-02-01 : 09:50:35
Morning tikus,

By default SSRS uses Windows Authentication. The only other way around this is to use Forms Authentication. I've posted a link here
http://www.sql-server-performance.com/absolutenm/templates/?a=1111&z=0

On how to accomplish what you want to do using forms authentication. It is the third Question down.

Your second question is you need to tap into the ReportServer database and UPDATE the table called Subscriptions. The field you want to update is the OwnerID field. The issue is the OwnerID field is of GUID type, sample data might look like this:

{FF723231-1057-4628-B406-2E1B8685BE44}

Of course there is a simple solution to this :). You will need to view the Users table in RS.

SELECT UserID, UserName FROM Users

This will give you the UserID (which is the OwnerID) in the Subscriptions table. A simple join will tell you who the owner is of each report:

SELECT s.OwnerID, u.UserName FROM Subscriptions s INNER JOIN
Users u ON u.UserID = s.OwnerID

Does that help ?

Take a look at my article on the power of the report server for more info:

http://jhermiz.googlepages.com/powerofreportserver



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]

RS Blog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
Go to Top of Page

tikus
Starting Member

31 Posts

Posted - 2007-02-01 : 13:16:41
Very, very helpful! Thanks a lot!!!

When I checked Users table, I saw a user called BUILTIN\Administrators, is it a good idea to use this one for all the subscripitons?
Go to Top of Page

tikus
Starting Member

31 Posts

Posted - 2007-02-06 : 15:51:28
I changed all the Subscriptions.OwnerID to BUILTIN\Administrators's UserID. All the subscriptions work fine after that. However, after we disabled Windows login for the old owner, the ReportServerService log file report the same error again:

ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.UnknownUserNameException: The user or group name 'XXXXX\XXXXX' is not recognized

Is there anywhere else i need to modify? Thanks.
Go to Top of Page

tikus
Starting Member

31 Posts

Posted - 2007-02-06 : 16:07:35
One more thing, even though the log file reported error, the subscriptions did run successfully. And in Report Manager the Status of the reports showed "Pending".
Go to Top of Page
   

- Advertisement -