Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: extracting a user activity in BPC 7.5 sp8 MS version

$
0
0

Hi Dludlu,

i've resolved a similar request from the client with the "[dbo].[tblLoggedIn]" table of the environment.

 

USEEnvironmentShell;

SELECT

u.[UserID],

q.ApplicationNm,

q.lastLogIn,

DATEDIFF(MONTH,q.lastLogIn,GETDATE()) asDiff

FROM[dbo].[tblUsers] u

LEFT OUTER JOIN (

  SELECT DISTINCT

  [UserID],

  [ApplicationNm],

  MAX([TimeLoggedIn]  ) aslastLogIn

  FROM[dbo].[tblLoggedIn]

  GROUP BY[UserID],[ApplicationNm]

) qONq.[UserID] = u.[UserID];


This query returns the users and the difference in months from the last log in and the users that never logged in.

You can change "EnvironmentShell" in the USE statement for the name of any environment you have.

With this i think you'll be able to create your report.

 

Hope this helps.

Kindest Regards,

Santiago R



Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>