I am executing a script by using file like below:
EXEC master.dbo.xp_cmdshell 'sqlcmd -d TE07 -S ServerName -i D:\TE07.sql'
When executing the above line I am getting the below error:
Msg 18456, Level 14, State 1, Server WIN-T7NMRSDEBNP, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I have read a lot but I am not clear about this. In many articles it is define as a LinkedServer issue. Can anyone please suggest me.