使用性能计数器的用户权限

编程入门 行业动态 更新时间:2024-10-22 04:52:08
本文介绍了使用性能计数器的用户权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我希望我的SQL中具有性能计数器的用户连接.

I want user connections in my sql with performance counter.

我写了这段代码:

将prf作为新的System.Diagnostics.PerformanceCounter("SQLServer:General Statistics","User Connections")

Dim prf As New System.Diagnostics.PerformanceCounter("SQLServer:General Statistics", "User Connections")

所以,prf.NextValue()是它的值.

So,prf.NextValue() is its value.

它给了我全部连接,但是我想查看每个用户的连接.

it gives me total connection,but i want to see each user connections.

你能帮我吗?

感谢您的答复

推荐答案

您好,goksuuu

Hi goksuuu

我非常确定不可能有一个性能计数器来连接各个用户.

I'm quite sure that it is not possible to have a performance counter for connections on individual users.

您可以通过运行sp_who存储过程来找到它们.

You could find them out by running the sp_who stored procedure.

致谢

Nico

更多推荐

使用性能计数器的用户权限

本文发布于:2023-11-22 06:46:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1616378.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:计数器   用户权限   性能

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!