Additional SQL Server features and topics not covered by specific categories
Hi @DeepKaur-3078,
As Erland mentioned, your issue is typical double-hop problem. The issue is that SQL A does not pass login credentials on to SQL B. Why doesn’t SQL A pass through the credentials? Because the service account under which SQL A(middle server) is running was not configured as below screenshot. Active Directory User and Computer > User> service account >Properties > Delegation. Make sure Advanced Features are being shown, or the delegation tab will not show up.
Please refer to below links to get more details information.
Double-Hop Linked Servers
How to link two SQL Server instances with Kerberos
SQL Server: Curse Of Linked Server Security And The Fix: Pass-through Authentication
Best regards,
Cathy
===============================================
If the response helped, do "Accept Answer" and upvote it.