views:

22

answers:

1

I Need to find out what are all the applications that use my sql server.

I'm using Profiler trace to do this (if there's another way to do this I would appreciate it)

On Profiler I'm using a Replay template, and after looking at the trace result I see that there's a column called Application Name, I'm wondering if there's a way to get the distinct ones (the trace is on a .trc file).

(By the way is this supposed to be posted on stackoverflow or serverfault?)

Thanks, Gabriel

+1  A: 

Try this:

SELECT DISTINCT ApplicationName
FROM ::fn_trace_gettable('C:\YourFolder\YourTraceFile.trc', DEFAULT) t
8kb
thanks @8kb, that really worked. Is there a way to isolate only non sql application (like jobs, agent, etc.) ?
Gabriel Guimarães
@Gabriel - if you know the name of what you'd like to see (or not see) in the results, you can add a WHERE clause to the statement (i.e. WHERE ApplicationName LIKE '%YourApp%')
8kb
I would actually like to exclude sql 2000 app's like sqloem (enterprise manager) but the thing is I don't know what are the sql app's. Thanks @8kb
Gabriel Guimarães