This is a script to find out what and who is running queries currently...
Select spid,hostname,program_name,nt_username,loginame,cmd, t.text from sys.sysprocesses
CROSS APPLY( select text from sys.dm_exec_sql_text(sql_handle))t
Is there something to find out all the queries that ran with USER logins in the past... I am using SQL 2008.
THanks,
Laura.