Reply
avatar user
Anonymous
Not applicable

the target principal name is incorrect when trying to execute SQL query from a jumphost

Is this kerberos issue or something else? thanksMicrosoftTeams-image (9).pngMicrosoftTeams-image (10).png

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @Anonymous ,

 

There are a few possible ways to fix this issue, depending on your situation:

- If you are connecting to an Azure SQL Database, you may need to change the compatibility level of the database to 130.

- If you are connecting to a local SQL Server, you may need to enable Named Pipes in the SQL Server Configuration Manager.

- If you are using a domain account to start SQL Server, or when you change the account that is used to start SQL Server, you may need to use the SetSPN.exe utility to control the Service Principal Name (SPN) that is assigned to the service and the account.

- If none of the above methods work, you can try to connect over TCP port and not by instance name. To do this, type into the Server field: {SQL-server-IP}, {SQL-server-port}, for example 192.168.1.5,54222.

 

You can refer to the following posts that may be helpful to you:

powerbi - The target principal name is incorrect. Cannot generate SSPI context. Azure SQL Database 

Getting "Microsoft SQL: The target principal name is incorrect. Cannot generate SSPI context." 

Solved: PowerBI Microsoft SQL: The target principal name i... - Microsoft Fabric Community

sql server - How to fix "The target principal name is incorrect error" with Microsoft.Data.SqlClient Version

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)