I am trying to connect SQL SERVER database to import data to power bi. i get the following issue.
We encountered an error while trying to connect.
Details: "Microsoft SQL: The target principal name is incorrect. Cannot generate SSPI context."
Its a local data base, sql server is 2016.
previously i importeted from another server everything was fine. i created this new server and unable to connect.
can anyone help.
I had encountered the same error "Microsoft SQL: The target principal name is incorrect. Cannot generate SSPI context." when trying to refresh data on PBI Desktop.
Before the error showed up, PBI Desktop could connect to the SQL DB and refresh data for the past 18 months. The error msg just showed up one day.
The SQL DB's Windows server password had expired. However, that password remains unchanged as per company policy.
The following steps help to resolve my issue:
Thank you so much! I thought it was just enough to change the Server Name and Database Name. Upon going to this part of the settings and refreshing the Database's Username and Password, it worked like a charm! Once again, thank you so much!
Exellent answer. Power BI is fantastic but the UI is a complete dogs breakfast now
Thank you very much. This worked for me!
This is an issue about SQL SERVER. There could be many causes. You can reference these two posts. It would be good idea to post in SQL Server Security Forum for assistance.
Can you connect to this SQL Server instance using ANY OTHER Tools? such as SSMS (SQL Server Management Studio) or something else?
This might be the case that the connection services for SQL Server are not configured properly. SQL Browser is not running, and many other reasons why the connection to SQL Server is not working.
Hi Reza , good to see you here. Its my delight to see u taking care of my issue yourself.
to answer your question: from my workstation i am able to connect via SQL Server management studio.
Check out the changes to the Power BI Community announced at Build.
Find out more about the May 2023 update.
Visit our Data Stories Gallery and give kudos to your favorite Data Stories.