Solved

Execute procedure after report execution

Posted on 2008-10-01
4
472 Views
Last Modified: 2008-10-14
I have a report that runs on a specific time. I save it into a windows file share so anybody who has access to that windows file sahre folder can view my report.

I wanted to have custom made log. Each time a report is executed, I wanted to insert a record on a specific table -- e.g Report file name, extension file, date of execution and even the parameters used by that report.

Is this possible?
0
Comment
Question by:Faiga Diegel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
TommyTupa earned 500 total points
ID: 22618903
First off, are you aware of the execution log in the reportserver database?
select *  FROM [ReportServer].[dbo].[ExecutionLog]

More info about this is found here: http://technet.microsoft.com/en-us/library/aa972247(SQL.80).aspx
0
 
LVL 15

Author Comment

by:Faiga Diegel
ID: 22618955
Yup I'm aware of that.

But I wanted to have the log table on our current DB. Currently, that log table is used by an application (read-only). I wanted to consolidate SSRS log to our current report log table.

If there is a way to insert those information to a specific table, it would be great!

Thanks
0
 
LVL 12

Expert Comment

by:jgv
ID: 22620322
Does your report use a stored procedure to return the data? If it does, add an insert statement to the stored procedure. Of course the account being used to excute the procedure would need the appropriate sql permissions to insert into your table.
0
 
LVL 13

Expert Comment

by:TommyTupa
ID: 22621232
The link in the first post contains specific instructions on using DTS to export the data to your own table.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question