获取 SQL 代理服务的服务帐户详细信息 [英] Get Service Account Details of the SQL Agent Service

查看:30
本文介绍了获取 SQL 代理服务的服务帐户详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取特定 SQL Server (SQL 2005) 的 SQL 代理服务的服务帐户名称.是否可以使用 SQL 语句或 WMI?

How can I get the Service Account name for the SQL Agent service for a particular SQL Server (SQL 2005). Is it possible to get using SQL statements or WMI ?

推荐答案

您可以使用 sc.exe.

查找 SQL 实例服务:

To find SQL instances services:

sc \\<remote computer name> query | find /i "sql"

获取配置:

sc \\<remote computer name> qc <service name from listing above>

这篇关于获取 SQL 代理服务的服务帐户详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆