Solved

Execute procedure after report execution

Posted on 2008-10-01
4
450 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get row count of current SQL query 8 63
Restrict result set 1 43
Unable to save view in SSMS 21 79
Please help for the below sql query. 1 29
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…

740 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