Pravin Patel-491467
Say Hey Kid
Points: 674
More actions
January 14, 2009 at 8:04 am
#127042
Hi, all
How can i get time of last activity done by any user in sql server 2005?
Thanks,
Pravin.
Jack Corbett
SSC Guru
Points: 184394
January 14, 2009 at 9:03 am
#926658
I believe you will need to use the default trace to query that data. Something like this:
Select
T.path,
TE.*,
F.*
From
sys.traces T Cross Apply
::fn_trace_gettable(T.path, T.max_files) as F Left Join
sys.trace_events TE On
F.EventClass = TE.trace_event_id
Where
F.loginname = [name]
Jack CorbettConsultant - Straight Path SolutionsCheck out these links on how to get faster and more accurate answers:Forum Etiquette: How to post data/code on a forum to get the best help Need an Answer? Actually, No ... You Need a Question
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply