Hi All,
I have an Sp which consists of Linked Server used to connect remote system. If I run this SP
from QueryAnalyzer its working fine. I kept this SP as SchdulerJob and I m started to execute that Job.
It is reporting the following error.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. [SQLSTATE 28000] (Error 18456)
I checked authenticatin modes also(both source and destinatins) all are fine. I gave the owner of the job as also sa. In addition with this I gave the job with Self as Run as User Option
Still its not working
Can any body help me to resolve the solutions
Waiting for immediate reply
veera
Check this
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q237/6/04.ASP&NoWebContent=1
If you use full-text searching, you must grant the NT Authority\System sysadmin rights to SQL Server if the Builtin/Administrators role is removed:EXEC sp_grantlogin [NT Authority\System]EXEC sp_addsrvrolemember @loginame = [NT Authority\System], @rolename = 'sysadmin'See http://support.microsoft.com/?id=263712 for the full article.
Judging by the timestamp of your post, chances are that you would have aleady found a solution to your issue. If not, here is what you can try.
I was facing a similar issue where in I had a SP which created a linked server, then executed some remote queries and finally dropped the linked server. This SP was working fine when executed from within Studio Manager (I'm using SQL 2005) how ever as soon as I tried putting it in a job it failed with the exact same error message.
I discoverd the issue to be this: The SQL Server Agent on the host machine (my desktop) was configured to run under the "Local System" account. Thus the job was getting executed under the "NT AUTHORITY\SYSTEM" account which ofcourse can not be used to connect to another SQL Server on the domain as it is a 'local' account.
The resolution is to configure the SQL Server Agent services to run under a service account which has the appropriate rights on the remote (linked) server.
Hope this helps.
Regards,
Kuljeet
I have a SP which consists of Linked Server used to connect remote system. I am calling a SP present in remote system thru linked server and when i execute that i get the following error Login failed for user ''''NT AUTHORITY\ANONYMOUS LOGON''. Both the servers a present in same domain and are running under Network Service Accounts.
Can any one help me in resolving this issue.
Thanks in advance..
Kumar