I had recently a weired requirement to get the SQL server AGENT Account from multiple servers, so I'm sharing how to get it through T-SQL
DECLARE @SrvAccount varchar(100)And the location the registry would be at ...
set @SrvAccount =''
SELECT @SrvAccount as SQLAgent_ServiceAccount
Post a Comment