Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
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
Anonymous
Not applicable

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. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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