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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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