Forum Discussion
SQL Database connection issues with current PBI Version
Hello together,
me and my colleague facing on different machines with the newest PBI Desktop version this issue.
Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. ((provider: SSL Provider, error: 0 - Certificate comes from a non-trusted certification organisation)
Background
- PBI Version 2.126.1261.0 64-bit (Februar 2024) --> Not Working
- Excel SQL Query --> Working
- PBI Version February 2023 --> Working
- Encryption off
- Login via Tab Database or Windows login brings the same issue
- Cache deleted
Can anyone help?
- Anonymous2 years ago
Hi Manuka
You can follow the recommended steps indicated in this article https://learn.microsoft.com/en-us/power-query/connectors/sql-server#sql-server-certificate-isnt-trusted-on-the-client-power-bi-desktop-or-on-premises-data-gateway
Steps:
- Add environment variable with variable name PBI_SQL_TRUSTED_SERVERS and *.contoso.com* as the variable value (change contoso.com to FQDN of your organization)
- Click 'OK' to save your changes
- Reboot your device.
- Open Power BI Desktop and clear permissions for the data source, go to File > Options and Settings > Data source settings.
- Select Get Data > SQL Server Database
Hope this would be helpful.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
5 Replies
- AnonymousNot applicable
Hi Manuka
You can follow the recommended steps indicated in this article https://learn.microsoft.com/en-us/power-query/connectors/sql-server#sql-server-certificate-isnt-trusted-on-the-client-power-bi-desktop-or-on-premises-data-gateway
Steps:
- Add environment variable with variable name PBI_SQL_TRUSTED_SERVERS and *.contoso.com* as the variable value (change contoso.com to FQDN of your organization)
- Click 'OK' to save your changes
- Reboot your device.
- Open Power BI Desktop and clear permissions for the data source, go to File > Options and Settings > Data source settings.
- Select Get Data > SQL Server Database
Hope this would be helpful.
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!- sbassey27Frequent Visitor
If we are only utilizing Power BI Desktop, where do we modify to value for "PBI_SQL_TRUSTED_SERVERS"? Updating the gateway config file makes sense to me, but unsure where to modify envrionment variables for PBI desktop.
- lbendlinSuper User
You do that in the advanced system settings dialog of your PC
- lbendlinSuper User
If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .