SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Reordering Subscriptions


Reordering Subscriptions

Author
Message
Kyle Sherry
Kyle Sherry
SSC Veteran
SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)SSC Veteran (246 reputation)

Group: General Forum Members
Points: 246 Visits: 186
Problem 1: Does anyone know how to reorder subscriptions names for a report? I've looked at all the tables and schema on the SSRS server but don't see anything indicating a sort order. It's clearly created by first inserted but there is no rowID as it is using a GUID for the primary key in Subscription table.
Example: Want these ordered sequentially.
- Turner 30th Day
- Lincoln 28th Day
- Turner 30th Day

Problem 2: How to populate all subscription comments with the same message. I have about 100 subscriptions that need to be populated with a default message inside of them but can't find the tables associated. I'm thinking they might be stored in an XML document on the server but that seems to be silly that MS would do that.

Thanks for any suggestions or help!
Sue_H
Sue_H
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24937 Visits: 7470
Kyle Sherry - Thursday, October 12, 2017 3:56 PM
Problem 1: Does anyone know how to reorder subscriptions names for a report? I've looked at all the tables and schema on the SSRS server but don't see anything indicating a sort order. It's clearly created by first inserted but there is no rowID as it is using a GUID for the primary key in Subscription table.
Example: Want these ordered sequentially.
- Turner 30th Day
- Lincoln 28th Day
- Turner 30th Day

Problem 2: How to populate all subscription comments with the same message. I have about 100 subscriptions that need to be populated with a default message inside of them but can't find the tables associated. I'm thinking they might be stored in an XML document on the server but that seems to be silly that MS would do that.

Thanks for any suggestions or help!

Before you get going too far, you should be aware that the only table or views that are supported for any access in the Reporting Services databases would be the ExecutionLog views. Updating the tables directly isn't supported and is likely to cause issues. The supported means of any changes would be through report manager or using the Web Service, SOAP API. You can use rs.exe to access those using what is basically VB script and execute the script against SSRS.
And there a lot of things in the tables that are in XML as MS didn't design (nor document) any of that for general use.

In regards to problem 2, the comments are stored in the Subscription table in the extension settings column. I would really, really not make modifications directly to the table.

In regards to problem 1, I have no idea what you mean by name of the subscription. For the subscriptions, there are descriptions and there are report names. Not sure if you mean one of those. If you have your own report or using one from the TechNet Gallery or elsewhere, use an order by in the query.

Sue



agerard 65681
agerard 65681
SSC Veteran
SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)SSC Veteran (273 reputation)

Group: General Forum Members
Points: 273 Visits: 109
In the SQL Reporting Service Database you will find a table called Subscriptions, and in that table an ntext field called ExtensionSettings. This is where the messages are stored (as part of an XML document). As Sue_H mentioned, monkeying with this manually is risky. I've done it before, but I wouldn't recommend taking it lightly. Back up the database. Make a copy of the table, and copy the ExtensionSettings field into a new field of XML datatype. Try creating some update statements with SQLXML, Xpath, etc (whatever you're most comfortable with) and see if you can get it to do the update you want (safely). Once you're SURE it's correct, back up your database again, try updating the ExtensionSettings field in the live copy of the Subscriptions table, and get ready to restore your backup when it all breaks. Wink

If it's only 100 subscriptions, I'd recommend manual copy/paste using the web front end as almost as quick and much safer.
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