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 アダルトグッズ激安通販。
カードローンナビは、あなたの希望に合わせたカードローンを比較・検索し、お申し込み出来るサイトです。
即日キャッシングのことならショッピングドットコムへ。ショッピング枠の現金化、即日クレジットの現金化に。
キャッシングの正しい選び方を解説しています。YAHOO! JAPANカテゴリ登録サイトのキャッシング比較マニアへどうぞ。
英会話 横浜にあるカランメソッドというイギリス独自の英語学習法を使用した英会話スクール。ネイティブによるスピーディな授業はまさに圧巻。
Left by MULAN on 5/30/2008 4:27 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar 不動産担保ローンで32年の実績と信頼で、多様化するお客様のあらゆるニーズにお応え致します。
ネイティブによるスピーディな授業はまさに圧巻の英会話スクール
ウエディングドレスからデザイナーズ・レンタルのウエディングドレス等、低価格で全国へお届けします!
緑内障(りょくないしょう)の治療法、目の病気「緑内障」の改善。
防犯カメラ・監視カメラ・ネットワークカメラのことなら。遠隔監視システム、等の設置工事や機器販売専門サイトです。
Left by MULAN on 6/2/2008 1:36 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar カラコン、カラーコンタクトレンズ、1日使い捨てコンタクトレンズなどを格安でお届けします。
自律神経失調症・パニック障害をたった3ヶ月で克服。そのマル秘テクニックを紹介します。
高品質・安心価格の翻訳サービス実現。多言語翻訳可能。実務・技術・医薬・金融・法律、WEB・DTPにも対応。
全国のゴルフ会員権を毎日更新しています。ゴルフ会員権の売買・時価評価はお任せ下さい。
緑内障(りょくないしょう)の治療法、目の病気「緑内障」の改善。
Left by MULAN on 6/2/2008 11:38 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar wow geld "About one year ago, thanks to World of Warcraft, I met my wife Lori at the middle school where we both teach.wow geld My students and friends got me playing a few years ago and I love the game.wow powerlevel Jokingly, I would tell people I'm going to probably marry someone who plays too.wow gold guide wow powerleveling guide Little did I know I could predict the future.One day after work I was walking to my car talking to a student about places I like to farm in-game.wow We walked past Lori, who overheard the conversation.wow gold The next day she came up to me and asked, ""Do you play World of Warcraft.wow "" I was shocked! That same day we went on our first date, where our discussions moved from World of Warcraft to worldly things, and we discovered how much we had in common.I rerolled a troll shaman on her realm, Ysera, where I quickly caught up to her priest and then we leveled together.serveur wow Last Christmas, when we both hit 60, I asked her to marry me.wow europe Playing together and getting to know each other was the best time of my life.wow gold Today we are married and I now have two stepsons, who also play.My new family is the most epic gear I could have ever found with this game.wow power leveling I have a beautiful wife and two awesome sons, and we are still playing today.wow powerleveling We are a family of 70s.wow gold paypal For the Horde!
"mp3 players
mp3 player wow power leveling mp3 player zubehoer mp3 player <hr/> world of warcraft power leveling mp3 mp4 wow lvl mp3 players mp3 player
Left by gamesavor on 8/7/2008 2:16 AM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar YAHOOヤフー
[url=http://www.google.com/]googleグーグル[/url]
Left by ytr on 8/19/2008 8:09 PM
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar 見良家庭教師KK
見良[url=http://www.ttrryy110.com/kk]家庭教師kk[/url]
見良http://www.ttrryy110.com/kk/
見良地域
見良個別
見良[url=http://www.ttrryy110.com/tikbt.html]地域[/url]
見良[url=http://www.ttrryy110.com/zitkgksh.html]個別[/url]
見良http://www.ttrryy110.com/tikbt.html
見良http://www.ttrryy110.com/kk/zitkgksh.html
見良老人ホーム
見良[url=http://www.yurita3.com/rjh]老人ホーム[/url]
見良http://www.yurita3.com/rjh/
見良fx
見良[url=http://www.tariyu.net/fx/]fx[/url]
見良http://www.tariyu.net/fx/
見良http://www.tariyu.net/fx/sairyoutrd.html
見良srt
見良[url=http://www.tariyu.net/fx/sairyoutrd.html]srt[/url]
見良syt
見良[url=http://www.tariyu.net/fx/systemtrd.html]syt[/url]
見良http://www.tariyu.net/fx/systemtrd.html
見良ガーデニング
見良[url=http://www.yurita3.com/gdn]ガーデニング[/url]
見良http://www.yurita3.com/gdn/
# re: How to run a subscription on demand by Trigerring Events in SSRS from command line
Gravatar wow power leveling:[url=http://www.mygamesale.com/]wow gold[/url] and [url=http://www.powerlevelings.com]wow power leveling[/url]

Left by ghgjfhk on 11/11/2008 2:04 AM
# 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
Left by 123htr on 11/24/2008 6:51 AM

Leave Your Comment

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

Please add 7 and 5 and type the answer here:

Preview Your Comment.