The target principal name is incorrect

Marcin Woszczyna 0 Reputation points
2024-05-06T13:06:14.6233333+00:00

Hi Team, I've got the error "The target principal name is incorrect. Cannot generate SSPI context" when I tried to connect to SQL Server from other server.

I've checked sql logs and I found info SPN was registered . I've run Kerberos Configuration Manager and I got error TCP must be enabled. I checked SQL Configuration Manager and TCP is enabled. Can somebody help me , where issue is?

Ps. I've logged in by used IP address

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,148 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MikeyQiaoMSFT-0444 3,190 Reputation points
    2024-05-23T09:21:21.2566667+00:00

    Hi,Marcin Woszczyna

    This issue may be caused by the SPN not being configured successfully

    Refer to

    https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/explicit-spn-is-misplaced?source=recommendations

    Best Regards,

    Mikey Qiao


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.