How to execute a report based on a query

  • I wonder if the following is possible;

    I would like to fire off an Reporting Services report based on the outcome of a query. Something like: 'if the total amount of salaries > 10.000 then execute a specific report and mail it to a subscriber'.

    I know you can define data driven subscriptions, but they only allow you to dynamically specify the receiver of the email based on a query.

    I would rather be able to define a query that would then trigger a scheduled report. Anybody knows if this has been done already (without development in .NET, VB or ASP)?

     

     

  • You could setup your report on a schedule then check the command text of the SQL Agent job that is created.

    Just use the same command text in a trigger or other stored procedure.

     

    --------------------
    Colt 45 - the original point and click interface

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply