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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors