Getting connnected users count missing
Getting connnected users count missing
I'm using IBDAC 2.70.0.45 and SDAC 4.70.0.44. With IBDAC, I can easily get a list of connected database users, but it seems that I can't get that with Micosoft SQL?
Thanks; I think I can use that. I get a list of connections, with a hostname column. By counting the number of unique hostnames, I can get a count of "connections".
I found sp_who rather slow. sp_who2 is much faster.
Do you know of a way of using 'exec sp_who2' in a query?
Then I could have a where clause to limit the output of 'exec sp_who2'.
Something like 'select exec sp_who2 where xx=yy'.
I found sp_who rather slow. sp_who2 is much faster.
Do you know of a way of using 'exec sp_who2' in a query?
Then I could have a where clause to limit the output of 'exec sp_who2'.
Something like 'select exec sp_who2 where xx=yy'.