Forum Discussion
Unable to connect Power BI to SQL
Hi WW,
Please check that if you can successfully connect to SQL Server from other application(such as Excel) which is installed in the same server with Power BI Desktop.
And use “IP address, port” or “tcp:computername” as server name to connect to SQL Server in Power BI Desktop.
Thanks,
Lydia Zhang
Hi Lydia,
Thanks for your reply, I have the same error using Excel (Power Query). I tried both tcp:computername and IP,port is still got stuck at "The User was not authorized" message. However I am able to connect from another machine 's SQL management studio to this DB and it works. Not sure what else I have missed...
- Anonymous10 years agoNot applicable
Hi WW,
Based on my test, in the following screenshot, when we specify a login account that doesn’t exist in SQL Server, or we specify an existing SQL login in the Windows page or specify a Windows login in the Database page, the above error message could occur.
Please describe more details about that how you specify the settings in the above screenshot. Also make sure that you right click Power BI Desktop and choose “Run as administrator” to start it. Besides, delete the cache and the old data source connections related as described in this blog.
Thanks,
Lydia Zhang