简体   繁体   中英

See SSRS subscriptions via SSL query? Query to generate parameters.

I am a setting up a test SSRS server to work "just like production, just a little different". I got the reports, the tempDB, and all the datasets working.

Need help on subscriptions. Production server has a small number of subscriptions, and I can see them through the browser UI. However, it doesn't show where it pushes the report files.

Update: found a way to see where the files are dropped, in the Subscription Manager tool. Still looking for how the parameters are generated when the report is run through subscription. There is one parameter that doesn't have a default and requires input when report is run manually.

Is where a way to see the subscription information by running a SQL query(-ies)? Is it possible to set up subscriptions by inserting data into tables directly, without dealing with the UI?

在此处输入图片说明

在此处输入图片说明

You are running data driven subscriptions based on the pictures you have posted. There will not be hardcoded file paths stored in this case. You will need to review the data driven query that produces the results at run time and compare that between your two environments. Check the columns in ReportServer.dbo.Subscriptions for the query that will be executed at run time. For each row returned in this query a report will be delivered (10 rows, 10 reports, each with their own custom attributes based on the mapping you provided in the picture).

I would not recommend direct inserts into ReportServer.dbo.Subscriptions . Things will likely not work as you want them to. SSRS creates a number of other items when you create a subscription via the UI (one large component is a SQL Agent job).

You can explore creating subscriptions via the SSRS API. It's fairly easy to integrate with C#.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM