Link to home
Start Free TrialLog in
Avatar of Martin Griffiths
Martin Griffiths

asked on

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

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?
Avatar of SThaya
SThaya
Flag of India image

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())
Avatar of Martin Griffiths
Martin Griffiths

ASKER

I have the same username info problem in the executionlog2 view.
have you checked with   above query result?


can you little bit explain what is your exact requirement.....
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())
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())
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.
Avatar of Nico Bontenbal
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.
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.
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
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.
ASKER CERTIFIED SOLUTION
Avatar of Nico Bontenbal
Nico Bontenbal
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ?