Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Manuka
Frequent Visitor

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?

1 ACCEPTED SOLUTION
Anonymous
Not 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-trus...

 

Steps:

  1. 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)
  2. Click 'OK' to save your changes
  3. Reboot your device.
  4. Open Power BI Desktop and clear permissions for the data source, go to File > Options  and Settings > Data source settings.
  5. 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!

View solution in original post

5 REPLIES 5
Anonymous
Not 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-trus...

 

Steps:

  1. 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)
  2. Click 'OK' to save your changes
  3. Reboot your device.
  4. Open Power BI Desktop and clear permissions for the data source, go to File > Options  and Settings > Data source settings.
  5. 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!

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. 

You do that in the advanced system settings dialog of your PC

lbendlin_0-1716323030603.png

 

lbendlin_1-1716323051739.png

 

ahh got it, thank you for the quick reply!

lbendlin
Super User
Super 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 .

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.