Forum Discussion
Unable to connect Power BI to SQL server db on the same computer
perpor,
There are some proposals for you troubleshooting this issue.
1. Enable TCP/IP in SQL Server Configuration Manager(SSCM).
2. Configure a static port for your SQL instance in SSCM.
3. Restart SQL Server Service in SSCM.
4. Launch Power BI desktop with admin privileges, go to “File –> Options and Settings –> Options –> Data Load” to clear cache in Power BI Desktop, then connect to SQL Server by using "tcp:machinename,port" as Server, and write query to check if the connection is successful.
If you still get error, please post the screenshot about the connection in Power BI Desktop.
Regards,
Hi,
I find a similar issue when trying to connect to Azure SQL DB. I can connect to the Server and load any table I want, but when trying to run a select statement I get an Authentication Error message (See attcahed). The select statement runs without a problem from SSMS, but in Power BI, no, even after using the proposed solution. I tried authenticating with the Admin of the SQL DB, and I got the same error. Again, this error is only when I try to run a select statement in the Advanced Options.
Any suggestions are very welcome!