<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect PowerBI to SQL Server - TrustServerCertificate in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739551#M955152</link>
    <description>&lt;P&gt;I haven't been able to get it to work with these links. First, I have restricted access and the second is throwing the same error.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 03:43:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-01T03:43:57Z</dc:date>
    <item>
      <title>Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739397#M955111</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with connecting my PowerBI desktop to my SQL server. I know 100% the problem lies with the 'TrustServerCertificate' attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When logging into to SSMS, or creating and ODBC data source, I need to ensure TrustServerCertificate is true. However, when using the SQL server connector (and the Azure SQL Server connector) in PowerBI desktop, there is no option for it. I have tried writing SQL statement to change this, as that's the only option I have but none have worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;TrustServerCertificate=TRUE;&lt;/P&gt;&lt;P&gt;TrustServerCertificate=Yes;&lt;/P&gt;&lt;P&gt;With all different versions of capitals, semi-colons etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something? What statement can I use to get PowerBI to TrustServerCertificate?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if I posted this in the wrong place.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 02:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739397#M955111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T02:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739404#M955114</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , refer if one of 2 can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-my/blog/ssl-security-error-with-data-source/" target="_blank"&gt;https://powerbi.microsoft.com/en-my/blog/ssl-security-error-with-data-source/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Certificate-Chain-Not-Trusted-Error-Effecting-PowerBI-Only/td-p/359157" target="_blank"&gt;https://community.powerbi.com/t5/Power-Query/Certificate-Chain-Not-Trusted-Error-Effecting-PowerBI-Only/td-p/359157&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 02:24:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739404#M955114</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-01T02:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739551#M955152</link>
      <description>&lt;P&gt;I haven't been able to get it to work with these links. First, I have restricted access and the second is throwing the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/2739551#M955152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T03:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/3442336#M1141951</link>
      <description>&lt;P&gt;Sometimes you have to search in another direction. I read a lot about loading service certificate and/or setting "&lt;SPAN&gt;TrustServerCertificate" to true.&lt;BR /&gt;&lt;BR /&gt;However, in our case (and it sounds more cases are like this) from one day to another the user (and only "one user") was not able to connect to SQL Server from power BI anymore. Nothing had changed in our environment. Solving the issue by some&amp;nbsp;certificate did not sound right.&lt;BR /&gt;&lt;BR /&gt;Try this (it solved our issue): make sure the user has the latest version of Power BI Desktop installed.&lt;BR /&gt;&lt;BR /&gt;In Sep 2023 the user was still working with version May 2023. Just installing the newest version of&amp;nbsp;Power BI Desktop enabled him to connect to SQL data again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 04:18:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/3442336#M1141951</guid>
      <dc:creator>WalTig</dc:creator>
      <dc:date>2023-09-22T04:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/3766175#M1221210</link>
      <description>&lt;P&gt;We did the temporary workaround using a SQL user instead of Active Directory authentication.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 11:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/3766175#M1221210</guid>
      <dc:creator>pere_ramos</dc:creator>
      <dc:date>2024-03-15T11:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4326480#M1354590</link>
      <description>&lt;PRE&gt;&lt;SPAN class=""&gt;[System.Environment]::SetEnvironmentVariable('PBI_SQL_TRUSTED_SERVERS','&amp;lt;servername&amp;gt;', 'User')&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 17:37:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4326480#M1354590</guid>
      <dc:creator>JMLyle</dc:creator>
      <dc:date>2024-12-12T17:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4691965#M1402048</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had similar issue and for me and&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="384610" data-lia-user-login="JMLyle" class="lia-mention lia-mention-user"&gt;JMLyle&lt;/a&gt;&amp;nbsp;solution worked.&lt;/P&gt;&lt;P&gt;Go to Control Panel &amp;gt; Edit environment variables for your account. Then add new and use this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:40:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4691965#M1402048</guid>
      <dc:creator>Johag</dc:creator>
      <dc:date>2025-05-14T07:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4718647#M1408864</link>
      <description>&lt;P&gt;This solution worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerBI (much like Fabric), when using custom certificates for your internal sql servers, doesn't have the option to say "Trust Server Certificate" like you can in a traditional connectionstring.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 16:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4718647#M1408864</guid>
      <dc:creator>OVerplancke</dc:creator>
      <dc:date>2025-06-03T16:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733673#M1412534</link>
      <description>&lt;P&gt;Hello! I have the same issue as the OP. I tried going to Control Panel, Edit Environmnet Variables, as&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="575991" data-lia-user-login="Johag" class="lia-mention lia-mention-user"&gt;Johag&lt;/a&gt;&amp;nbsp;mentioned. It didn't work, I still cannot open my SQL Server tables in PBI. Where did you input this code,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="384610" data-lia-user-login="JMLyle" class="lia-mention lia-mention-user"&gt;JMLyle&lt;/a&gt;&amp;nbsp;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 14:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733673#M1412534</guid>
      <dc:creator>tralala2</dc:creator>
      <dc:date>2025-06-16T14:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733686#M1412539</link>
      <description>&lt;P&gt;NEVERMIND, it worked. It just needed a Restart before trying again. So use the method written by the 2 users above, but restart your computer before retrying!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":clinking_beer_mugs:"&gt;🍻&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 14:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733686#M1412539</guid>
      <dc:creator>tralala2</dc:creator>
      <dc:date>2025-06-16T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733724#M1412550</link>
      <description>&lt;P&gt;Sorry this last post was so brief and cryptic, but I'm glad some people were able to interpret it and get it to work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is a PowerShell command to set an Environment Varible. In this case, it is setting a &lt;STRONG&gt;User&lt;/STRONG&gt; Environment Variable instead of a &lt;STRONG&gt;System&lt;/STRONG&gt; Environment Variable ("User" is not refering to a specific user account name, it is simply "user" as opposed to "system"). System Environment Variables generaly need a high lever of access to set, but most of the time, you should be able to set a User Environment Variable for yourself.&amp;nbsp;&lt;BR /&gt;The variable name is "&lt;SPAN class=""&gt;PBI_SQL_TRUSTED_SERVERS.&lt;/SPAN&gt;"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Open a PowerShell console window, and run this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;[System.Environment]::SetEnvironmentVariable('PBI_SQL_TRUSTED_SERVERS','&amp;lt;servername&amp;gt;', 'User')&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Where&lt;EM&gt; &amp;lt;servername&amp;gt;&lt;/EM&gt; is the name of the SQL server.&lt;BR /&gt;&lt;BR /&gt;You should also be able to use wildcards (*) with domain names, like "*.example.com" which would match any servers that have a Fully Qualified Domain Name that ends in&amp;nbsp;.example.com:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;[System.Environment]::SetEnvironmentVariable('PBI_SQL_TRUSTED_SERVERS','*.example.com', 'User')&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And as&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1290700" data-lia-user-login="tralala2" class="lia-mention lia-mention-user"&gt;tralala2&lt;/a&gt;&amp;nbsp;points out, you should probably reboot after setting the environment variable.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 14:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4733724#M1412550</guid>
      <dc:creator>JMLyle</dc:creator>
      <dc:date>2025-06-16T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4814899#M1431976</link>
      <description>&lt;P&gt;This worked for me. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 16:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4814899#M1431976</guid>
      <dc:creator>JRGilbert</dc:creator>
      <dc:date>2025-09-02T16:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4844311#M1438987</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In Power BI Desktop, this issue happens because the connector doesn't always trust the server's SSL Certificate. The easiest fix is to add the setting in the Advanced options of the connection window so it accepts the certificate. If that still fails, the proper way is to make sure your SQL server has a valid &lt;A href="https://cheapsslweb.com/blog/what-is-ssl-certificate-chain/" target="_self"&gt;certificate chain&lt;/A&gt; installed on Power BI can trust it without extra settings. If you're not comfortable handling certificates, your IT/DBA team can set this up for you. Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 10:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4844311#M1438987</guid>
      <dc:creator>luna22</dc:creator>
      <dc:date>2025-10-07T10:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4862362#M1443273</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In Power BI Desktop, this issue happens because the connector doesn't always trust the server's SSL Certificate. The easiest fix is to add the setting in the Advanced options of the connection window so it accepts the certificate. If that still fails, the proper way is to make sure your SQL server has a valid &lt;A href="https://cheapsslweb.com/blog/what-is-ssl-certificate-chain/" target="_self"&gt;certificate chain&lt;/A&gt; installed on Power BI can trust it without extra settings. If you're not comfortable handling certificates, your IT/DBA team can set this up for you. Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 11:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/4862362#M1443273</guid>
      <dc:creator>luna22</dc:creator>
      <dc:date>2025-10-30T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Connect PowerBI to SQL Server - TrustServerCertificate</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/5158077#M1465737</link>
      <description>&lt;P&gt;This simply worked for me. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 18:09:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Connect-PowerBI-to-SQL-Server-TrustServerCertificate/m-p/5158077#M1465737</guid>
      <dc:creator>SBegum</dc:creator>
      <dc:date>2026-04-24T18:09:30Z</dc:date>
    </item>
  </channel>
</rss>

