0

I am getting the error the target principal name is incorrect. Cannot generate SSPI context when trying to access a database that is in an Azure SQL Database when using Power BI Desktop

Has anyone else encountered this?

Management studio can connect to the database (once logged into my Azure account)

I have ensured that I am signed into Power BI with an account that has access to the database

I have ensured that the client machine IP address is allowed access to the database via the firewall on the database server in Azure

The database server also allows access to Azure services

Paul

John R Smith
  • 848
  • 7
  • 18
Paul
  • 2,773
  • 7
  • 41
  • 96

3 Answers3

1

Try to connect over TCP port and not by instance name. Type into "Server" field: {SQL-server-IP},{SQL-server-port}, example 192.168.1.5,54222. It's worked for me.

Dmitry
  • 388
  • 3
  • 4
0

Please try to change the compatibility level of the database to 130. I have found some users experimenting a similar error here.

ALTER DATABASE database_name   
SET COMPATIBILITY_LEVEL =  130;
Alberto Morillo
  • 13,893
  • 2
  • 24
  • 30
0

Make sure that "Named Pipes" are enabled from "SQL Server Configuration Manager".

  1. Open "SQL Server Configuration Manager".
  2. Expand "SQL Server Network Configuration", from the list on the left.
  3. Select "Protocols for [Your Instance Name]".
  4. Right click on "Named Pipes", from the list on the right.
  5. Select "Enable"
  6. Restart your Instance service.
S3minaki
  • 297
  • 3
  • 19