select e.nameaseventclass,t.loginname,t.spid,t.starttime, t.textdata,t.objectid,t.objectname,t.databasename, t.hostname,t.ntusername, t.ntdomainname,t.clientprocessid,t.applicationname,t.error ),(SELECTTOP f.[value] FROM sys.fn_trace_getinfo(NULL)f )…