Solved

Change subscription report delivery to

Posted on 2009-07-06
3
550 Views
Last Modified: 2012-05-07
We're running SQL Server Reporting Services 2005.

We've replaced an employee so they need to get all the subscriptions of their predecessor.  Is there SQL I can run that will change the delivery recipients on all the subscriptions?

Ideally I'd run something like:
Update Subscriptions
Set DeliveryTo = 'Tom';'Jane'
Where DeliveryTo = 'Tom';'Sue'

Thanks,
 TT
0
Comment
Question by:TommyTupa
  • 2
3 Comments
 
LVL 11

Expert Comment

by:andrei_teodorescu
ID: 24791997
update data in Subscriptions table (ReportServer database), [ExtensionSettings] column
here is an example:

<ParameterValues>
<ParameterValue><Name>TO</Name><Value>00225930</Value></ParameterValue>
<ParameterValue><Name>IncludeReport</Name><Value>True</Value></ParameterValue>
<ParameterValue><Name>RenderFormat</Name><Value>EXCEL</Value></ParameterValue>
<ParameterValue><Name>Subject</Name><Value>@ReportName was executed at @ExecutionTime</Value>
</ParameterValue><ParameterValue><Name>IncludeLink</Name><Value>True</Value></ParameterValue>
<ParameterValue><Name>Priority</Name><Value>NORMAL</Value></ParameterValue>
</ParameterValues>

change here <Value>LogonName</Value>

you may want to change [OwnerID] column as well, but you have to lookup in Users table to find corresponding ID
0
 
LVL 11

Expert Comment

by:andrei_teodorescu
ID: 24792001
sorry; so, instead:
<ParameterValue><Name>TO</Name><Value>00225930</Value></ParameterValue>
change to
<ParameterValue><Name>TO</Name><Value>LogonName</Value></ParameterValue>
0
 
LVL 13

Accepted Solution

by:
TommyTupa earned 0 total points
ID: 24820174
Ended up running this:
Update Subscriptions
Set ExtensionSettings =
replace(cast(ExtensionSettings as nvarchar(max)),'PersonX',PersonY'),
Description = Replace(Description,'PersonX','PersonY')
Where SubscriptionID in
(select
        S.[SubscriptionID]
from
    [Subscriptions] S inner join [Catalog] CAT on S.[Report_OID] = CAT.[ItemID]
    left outer join [ActiveSubscriptions] A with (NOLOCK) on S.[SubscriptionID]
= A.[SubscriptionID]
Where ExtensionSettings like '%PersonX%')
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now