Error connecting to SQL Server in SCCM

golden alick 140 Reputation points
2025-01-26T07:31:59.6866667+00:00

I want to use SQL queries for SCCM, but I encounter an error when connecting to the server in SQL Server Management Studio. The message says, "A connection was successfully established with the server, but then an error occurred during the login process. The target principal name is incorrect."

I am using the Server type as Database Engine and Authentication as Windows Authentication.

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,377 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 116K Reputation points MVP
    2025-01-26T11:06:37.3533333+00:00

    Which version of SSMS are you using? It may help to check the option "Trust server certificate" as in the example below. (But I believe that there are more possible reasons for this error, so it may not help.)

    If you are using an older version of SSMS, you find this checkbox on the Connection Properties tab.

    User's image

    0 comments No comments

  2. AllenLiu-MSFT 47,626 Reputation points Microsoft Vendor
    2025-01-27T01:59:08.59+00:00

    Hi, @golden alick

    Thank you for posting in Microsoft Q&A forum.

    How do you specify the server name? Try to specify the FQDN of the server name instead of just a host name.


    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 "Add comment".

    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.