Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SSRS: How to identify Current Subscription Session Id at runtime programmatically

$
0
0

I have a Report with several Subscriptions. This report should display parameters and those values dynamically. To be more concrete: particular SubscriptionA for ReportA has it's own set of params and schedule. SubscriptionB for ReportA has another set of params. In the ReportA I need to display a list of params which were choosen when that report was running for particular SubscriptionA or SubscriptionB.

To achieve that - I fetch data from [ReportServer].[dbo].[SnapshotData] and  [ReportServerTempDB].[dbo].[SessionData] tables. [ReportServer] is default SSRS's DB.

But I can't Identify and match the current Sebscription ID and current Session Id.

Question: who knows how to identify (e.g. select from database table) current execution Session Id? Mayby it is some build-in hidded Field? Maybe I'm messy and digging in the wrong direction - please help.


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>