I am having trouble with setting up an agent proxy account. I renamed the server and I cannot delete or change the agent proxy account. The proxy account was a local account on the server, and the proxy account still shows with the name of the server before I changed it. I believe that the information about the proxy account may be in the registry, but I have been unable to find it.When I try to change or delete it, I just get a message saying “No mapping between account names and security IDs was done.”I have done a lot of Google searches on this, and other people have had the problem, but no one seems to have a solution.The script below and results show what it happening:select servername= @@servernameselect version = @@versiongoprint 'Show proxy account'exec xp_sqlagent_proxy_account N'GET'goprint 'Delete proxy account'exec xp_sqlagent_proxy_account N'DEL'goprint 'Set proxy account'exec xp_sqlagent_proxy_account N'SET',N'SQLSERVER55', N'PRX_SQLSERVER55', N'mysecretpassword'goprint 'Show proxy account'exec xp_sqlagent_proxy_account N'GET'
Results:servername--------------SQLSERVER55(1 row(s) affected)version--------------------------------------------------------------------------Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)(1 row(s) affected)Show proxy accountDomain Username----------------- -------------------SQLSERVER55TEMP PRX_SQLSERVER55(1 row(s) affected)Delete proxy accountNo mapping between account names and security IDs was done.Set proxy accountNo mapping between account names and security IDs was done.Show proxy accountDomain Username----------------- -------------------SQLSERVER55TEMP PRX_SQLSERVER55(1 row(s) affected)
Solution:Delete the following registry keys. You may have to grant yourself permission to these keys, even if you are an administrator.HKEY_LOCAL_MACHINE\SECURITY\Policy\Secrets SQLSERVERAGENT_SQLAgentProxyDomain SQLSERVERAGENT_SQLAgentProxyPassword SQLSERVERAGENT_SQLAgentProxyUsername
CODO ERGO SUM