How to run a subscription on demand by Trigerring Events in SSRS from command line

One of my custmers wanted to use their own scheduler control all of their SSRS subscriptions. if you need to do the same here is the step by step example of acomplishing this task.

Create either a datadriven or regular subscription

1.       In Management studio connect to the Database Engine (local)

2.       Expand the database and drill down to Report Server Database

3.       Click on File à New à query with current connection

4.       In the query window type the following command and execute it to get the subscription ID

Select *  From subscriptions

 

5.       To locate the correct subscription look  at  description column

6.       Open  Note pad and  copy and paste the following code snippet

Sub Main()

    Try

        rs.FireEvent("TimedSubscription", "{SubscriptionID}")

            Catch ex As Exception

        Console.WriteLine(ex.Message)

   End Try

End Sub

7.       Replace {SubscriptionID}  with the actual SubscriptionID from the query executed in step 4

8.        Save this file as c:\ExecuteSubscription.rss

9.       Open a command window

a.       Click on Start à run

b.      Type in Cmd.exe and press enter

10.   In the command window execute the following command

rs.exe -i c:\ExecuteSubscription.rss -s http://localhost/reportserver

11.   You should get the following error

rs.exe -i c:\ExecuteSubscription.rss -s http://localhost/reportserverSystem.Web.Services.Protocols.SoapException: The permissions granted to user ‘{YourUserName}’ are insufficient for performing this operation

12.   By default no users or Roles are allowed to  Generate Events .

13.   Open Report Manager click on Site Settings then click on Site settings Security.

14.   Press Edit next to Generate events

15.   Then Click on System Administrator.

16.   Check the Generate events task.

17.   Re-execute the command in step 9.

18.   View the file share and make sure all the files were created successfully.

 

 

Comments

# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar wow power leveling:wow gold and wow power leveling
Left by ghfgjghjhk on 11/11/2008 2:06 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar sometimes you can go to earn the Pirates of the Burning Sea Gold for your own life and you can also get a lot of happiness in the game if you play the game well. you can brush the potbs gold to upgrade and then you are very strong.
Left by Pirates of the Burning Sea Gold on 4/14/2009 1:59 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar I think 9Dragons is my favorite game, I did not know how to play at first, someone told me that you must have 9Dragons gold.
Left by 9Dragons money on 4/15/2009 10:08 PM
# wow gold
Gravatar so you found yourwow power leveling calling, music teaching. Congratulations, many people are still trying to figure out what is the career of their dreams.wow powerleveling However
Left by yong on 4/17/2009 4:20 AM
# wow gold
Gravatar so you found yourwow power leveling calling, music teaching.
Left by yong on 4/20/2009 1:41 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar
He is cute, charming, very wow gold
Left by flfl on 4/23/2009 2:22 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar Have you heared about the game which you need use shadow of legend Gold to play,
Left by shadow of legend Gold on 5/18/2009 1:52 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar If you get kalonline Geons, you can continue this game.
Left by kalonline Geons on 5/18/2009 1:52 AM
# wow gold
Gravatar Be sure that you have never wow goldhad any regrets in your life which only lasts for a few decades. Laugh or cry as you like, and it is wow goldmeaningless to oppress yourself.
Left by wyh on 5/27/2009 1:30 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar What goes on and off, from the set of bulbs in my brain.
Left by runescape power leveling on 5/27/2009 5:50 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar I really hope this solves my current problem with my webserver, thanks
Left by abercrombie t-shirts on 6/2/2009 8:23 AM
# re: louboutin shoes
Left by dupinghua on 6/26/2009 4:58 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.
Left by tiffanys on 7/12/2009 2:32 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar The soldiers interposed their bayonets, for they thought that he was about to attack the inspector, and the latter recoiled two or three stepsbuy wow gold
Left by lj on 7/13/2009 2:17 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar [url=http://www.toppowerlevel.net]wow power leveling[/url]
Left by faf on 7/22/2009 9:09 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar wow power levelingwow power leveling
Left by big on 7/22/2009 9:11 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar Thanks for your information!
Left by links of london on 7/29/2009 3:24 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar this is a great article! psycholog przez internet and psycholog on line
Left by mimke on 7/29/2009 2:34 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Left by beatr on 7/29/2009 2:35 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Left by inwowgold on 8/6/2009 9:09 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar Hester caughtwow gold wow gold hold of Pearl,wow goldwow gold and drew wow goldwow her forciblywow gold into herwow gold arms,wow gold confronting wow goldthe old world of warcraft goldPuritan magistratecheap wow gold with almostwow power leveling a fierce wow
Left by LXY on 8/11/2009 5:00 AM
# rolex replica GMT
Gravatar Om du önskar mest önskad och, berömdt spänna av kopian James Bond Omega replicas då besöka vår website för att få en.
Left by Nicole Thompsen on 9/7/2009 11:57 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar This site is interesting and very informative, nicely interface. Enjoyed browsing through the site. chi hair straightener
Left by chi 1 flat irons on 9/18/2009 10:46 PM
# Replica Rolex Datejust
Gravatar Wat onze website moet aanbieden is een de replica submariner geld van replica Rolex datejust kan verwerven.
Left by George Matthews on 9/23/2009 8:05 AM
# 123
Gravatar oncentration camp. buy cheap metin2 yangbuy metin 2 yang
Left by LX on 9/25/2009 12:15 AM
# rolex
Gravatar Les gens utilisant des montres de reproduction de replica Rolex se sentent confiants, luxueux et gracieux.
Left by girlteam on 10/4/2009 12:09 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar Thanks for the info. It's great - and I should know, I'm the biggest douche in taipei!
Left by the biggest douche in taipei on 10/10/2009 8:45 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar One of my custmers wanted to use their own scheduler control all of their SSRS subscriptions. [url=http://www.saleuggboots.co.uk/classic-tall-stripe-cable-knit-ugg-boots]Classic Tall Stripe Cable Knit Ugg Boots[/url] if you need to do the same here is the step by step example of acomplishing this task.
Left by Ugg Sandals on 10/21/2009 12:47 AM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

 

Preview Your Comment.