March 11, 2021 at 12:00 am
Comments posted to this topic are about the item Getting the SQL Connections
March 12, 2021 at 2:01 am
I looked at the link for dm_os_performance_counters but can't figure out where it says to use counter_name = 'User Connections'. What am I missing?
March 12, 2021 at 2:59 pm
Not sure what your question is. The ref is a general link for the DMV. The link from there to SQL Server objects describes each counter. This would be the query
SELECT * FROM sys.dm_os_performance_counters
WHERE counter_name = 'User connections'
March 12, 2021 at 4:05 pm
Thanks Steve I did figure it out. IMHO the explanation could have been a bit more detailed. I can follow dm_os_performance_counters to get to the SQL Server objects, but then you have to "know" that you have to select General Statistics, and then the last item is User Connections.
March 12, 2021 at 6:33 pm
Actually, you can just use the counter. Don't need the object, but certainly the explanation can usually be improved.
Love to see you or others submit something if you think of any interesting questions. Use the "Write for Us" link in the upper right.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply