select loginname, loginsid, spid, hostname, applicationname, servername, databasename, objectname, e.category_id, cat.name, textdata, starttime, endtime, duration, eventclass, eventsubclass, e.name as EventName ) inner join sys.trace_events e on even