Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Editing the ReportServer.dbo.Subscriptions table's Report_OID Field


Editing the ReportServer.dbo.Subscriptions table's Report_OID Field

Author
Message
jbarry 87949
jbarry 87949
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 254
So, I have an older report that has many subscriptions and each subscription has custom parameters defined. We have to replace this report with a new version and this new version of the report has a different name (cannot just overwrite it).

I know the exact ItemID of both the old and new report (from Catalog table). It appears that ItemID from Catalog table maps to Report_OID in the Subscriptions table.

Is it ok to update the Report_OID within the ReportServer.dbo.Subscriptions table to point at a new ItemID.

For example, I would update with the following query:

declare @Old_Report_OID uniqueidentifier = 'old value'
declare @New_Report_OID uniqueidentifier = 'new value'

update s
set s.Report_OID = @New_Report_OID
from reportserver.dbo.Subscriptions s
where s.Report_OID = @Old_ReportOID

Am I making the correct assumption to batch correct the Subscriptions table?

Thanks in advance.

James

p.s. Yes, I have backups. YEs, I will backup the subscriptions table before updating.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search