MSSQL: The target principal name is incorect

Angela Taseva 1 Reputation point
2022-12-16T14:34:13.623+00:00

A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.) (Framework Microsoft SqlClient Data Provider)

How can I resolve this error?

SQL Server | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,696 Reputation points Volunteer Moderator
    2022-12-16T16:51:00.227+00:00

    you are using kerberos for authentication, and it is failing. most likely the sqlserver is trying to register it SPN and failing. see:

    https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/register-a-service-principal-name-for-kerberos-connections?view=sql-server-ver15

    1 person found this answer helpful.
    0 comments No comments

Your answer

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