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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
hadase
Regular Visitor

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

I have a .pbix file where I have a table

that connects to a SQL Server database - the IP was changed yesterday

, and since then it couldnt refresh in the Power Bi Service.

In the .pbix file in Power BI desktop, the table doesnt connects to the data.

I changed the server to the new IP but it has this messege:

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

 

I dont understand why - because the windows credentials are the same.

1 ACCEPTED SOLUTION
v-priyankata
Community Support
Community Support

Hi @hadase 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@VijayP Thanks for the inputs.

In addition please try below points. Try using the SQL Server’s hostname instead of its IP address, or turn on Trust Server Certificate, this usually restores the connection and resolves the SSPI error.

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Thanks.

View solution in original post

6 REPLIES 6
v-priyankata
Community Support
Community Support

Hi @hadase 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@VijayP Thanks for the inputs.

In addition please try below points. Try using the SQL Server’s hostname instead of its IP address, or turn on Trust Server Certificate, this usually restores the connection and resolves the SSPI error.

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Thanks.

Hi @hadase 

I hope the information provided was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

Hi @hadase 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

 

VijayP
Super User
Super User

@hadase 

 

Hope below thread might help you!

https://learn.microsoft.com/en-us/answers/questions/1368194/microsoft-sql-the-target-principal-name-...

Let me know if this still not resolved




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hey,

Its an mssql databse with server in aws not azure

They moved to cloud server of AWS

And i tried to put the new IP or the server name

With the current windows credentials and it doesnt connect.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.