Solved

ExecutionLogStorage history of report executions bringing back the same username in ssrs 2008

Posted on 2013-01-28
13
1,005 Views
Last Modified: 2016-05-18
I'm trying to establish who's run which ssrs report between two dates. I've been querying the executionlogstorage table, and, although it does report some usernames, the majority seem to be the default server report username. I can't seem to establish a pattern though to diagnose what's wrong. Does anyone have any tips on how to fix this please?
0
Comment
Question by:Grffster
  • 5
  • 4
  • 3
  • +1
13 Comments
 
LVL 11

Expert Comment

by:SThaya
ID: 38826478
0
 
LVL 11

Expert Comment

by:SThaya
ID: 38826489
SELECT catalog.name AS report,
       e.username AS [User],
       e.timestart as tstart,
       e.timeend as timeendd,
       Datediff(mi,e.timestart,e.timeend) AS  'Time In Minutes',
       catalog.modifieddate AS [Report Last Modified],
       users.username
FROM   catalog  (nolock)
       INNER JOIN executionlogstorage e (nolock)
         ON catalog.itemid = e.ReportID
       INNER JOIN users (nolock)
         ON catalog.modifiedbyid = users.userid
WHERE  e.timestart >= Dateadd(s, -1, '01/01/2013')
       AND e.timeend <= Dateadd(DAY, 1,getdate())
0
 

Author Comment

by:Grffster
ID: 38826499
I have the same username info problem in the executionlog2 view.
0
 
LVL 11

Expert Comment

by:SThaya
ID: 38826506
have you checked with   above query result?


can you little bit explain what is your exact requirement.....
0
 
LVL 11

Expert Comment

by:SThaya
ID: 38826528
With ExecutionLog2


SELECT catalog.name AS report,
       e.username AS [User],
       e.timestart as tstart,
       e.timeend as timeendd,
       Datediff(mi,e.timestart,e.timeend) AS  'Time In Minutes',
       catalog.modifieddate AS [Report Last Modified],
       users.username
FROM   catalog  (nolock)
       INNER JOIN dbo.ExecutionLog2 e (nolock)
         ON catalog.Path  = e.ReportPath  
       INNER JOIN users (nolock)
         ON catalog.modifiedbyid = users.userid
WHERE  e.timestart >= Dateadd(s, -1, '01/01/2013')
       AND e.timeend <= Dateadd(DAY, 1,getdate())
0
 
LVL 11

Expert Comment

by:SThaya
ID: 38826532
With ExecutionLog3



SELECT catalog.name AS report,
       e.username AS [User],
       e.timestart as tstart,
       e.timeend as timeendd,
       Datediff(mi,e.timestart,e.timeend) AS  'Time In Minutes',
       catalog.modifieddate AS [Report Last Modified],
       users.username
FROM   catalog  (nolock)
       INNER JOIN dbo.ExecutionLog3 e (nolock)
         ON catalog.Path  = e.ItemPath  
       INNER JOIN users (nolock)
         ON catalog.modifiedbyid = users.userid
WHERE  e.timestart >= Dateadd(s, -1, '01/01/2013')
       AND e.timeend <= Dateadd(DAY, 1,getdate())
0
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.

 

Author Comment

by:Grffster
ID: 38826541
Yes, the same issue with usernames. Our reports are published on our intranet. For argument's sake, the default server username for intranet reports is DOMAIN/IISXXX$. If I then run the report e.g. DOMAIN/me, I would expect to see in executionlog2 and executionlogstorage DOMAIN/me being the username not DOMAIN/IISXXX$ which it's doing.
0
 
LVL 22

Expert Comment

by:Nico Bontenbal
ID: 38826588
Just a wild guess, but could it be the credentials for the data source. For the data source you can specifiy if you want to use specific credentials or Windows integrated security.
0
 

Author Comment

by:Grffster
ID: 38826685
Well that was my first suspicion, but, on looking at the reports more closely, they all seem to be using the same setup in report manager, i.e. whether they're specified in the report or using a shared data source, with Credentials Stored Securely in the Report Server selected, and an username and password specified, and nothing else selected.
0
 
LVL 22

Expert Comment

by:Nico Bontenbal
ID: 38827008
When I run a report from Report Manager is shows Domain/me in the log. When the report is run by a subscription it is NT AUTHORITY\SYSTEM.
By 'intranet' do you mean Sharepoint? In that case the report might always be executed by Sharepoint resulting in the same user for every report.

Maybe you can find some useful information here:
http://msdn.microsoft.com/en-us/library/ms159110(v=sql.105).aspx
0
 

Author Comment

by:Grffster
ID: 38843368
No, (although we will be in the future). It's a intranet developed in .net we've built ourselves with a reports page that passes parameters in to an SSRS report.

Seen that page but the same data is populated in those tables too.
0
 
LVL 22

Accepted Solution

by:
Nico Bontenbal earned 500 total points
ID: 38867043
Well, I guess the reports are executed by IIS then. Don't think there is a way around this. I'm afraid you need to add logging functionality to your Intranet. Just a time stamp with username and report is probably sufficient. You can link that data to the SSRS log.
0
 
LVL 1

Expert Comment

by:marrowyung
ID: 41603140
hi all,

we are trying to find a method to find out anything wrong with SSRS and debug/isolate it, the script about shows me:

Msg 208, Level 16, State 1, Line 1
Invalid object name 'catalog'.

any problem ?
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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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