Solved

Execute procedure after report execution

Posted on 2008-10-01
4
427 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:faiga16
  • 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:faiga16
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now