The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need to configure PowerBI database server connection with Encrypt=True and TrustServerCertificate=True options.
Is it possible to do this? If so, how is this done?
Hi dcvman,
We are following up to check if your query has been resolved. If you have found a solution, kindly share it with the community to help others facing similar issues.
If our response was helpful, please mark it as the accepted solution. This will benefit the wider community.
Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.
Thank you.
Hi dcvman,
We are following up to see if your query has been resolved. Should you have identified a solution, we kindly request you to share it with the community to assist others facing similar issues.
If our response was helpful, please mark it as the accepted solution and provide kudos, as this helps the broader community.
Thank you.
Hi dcvman,
We wanted to check in regarding your query, as we have not heard back from you. If you have resolved the issue, sharing the solution with the community would be greatly appreciated and could help others encountering similar challenges.
If you found our response useful, kindly mark it as the accepted solution and provide kudos to guide other members.
Thank you.
Hi dcvman,
We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.
If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.
Thank you.
Hi @dcvman ,
Yes, you can set up a Power BI database server connection with both Encrypt=True and TrustServerCertificate=True—I’ve had to do this myself a few times, especially in dev/test environments. Here’s how you do it:
For Power BI Desktop: When you connect to your SQL Server, expand the “Advanced options” in the connection dialog. In the “Additional settings” box, enter: Encrypt=True;TrustServerCertificate=True
For Power BI Report Server: Open up the RSReportServer.config file (you’ll find this under something like C:\Program Files\Microsoft SQL Server\MSRSxx.<InstanceName>\Reporting Services\ReportServer). Look for the <ConnectionProperties> section. Set your connection string to include both: <ConnectString>Data Source=YOURSERVER;Initial Catalog=YOURDB;Encrypt=True;TrustServerCertificate=True</ConnectString>
Save the file and restart your report server service for changes to take effect.
If you get an error about the “target principal name,” it’s usually because the SQL certificate name doesn’t match the server name. Using TrustServerCertificate=True bypasses this, but again, best to fix your certs if you’re going to production.
Hi dcvman,
Thank you for reaching out through the Microsoft Fabric Community Forum.
Based on my understanding, the error message "The target principal name is incorrect" generally occurs when encryption is enabled without explicitly trusting the certificate.
To configure Power BI Report Server to use Encrypt=True; TrustServerCertificate=True, please follow the steps below, which may help to resolve the issue:
This configuration bypasses the certificate name verification and resolves the encryption-related login error.
For your reference, please find the relevant documentation here:
Reporting Services configuration files - SQL Server Reporting Services (SSRS) | Microsoft Learn
If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar issues.
Should you have any further queries, please feel free to contact the Microsoft Fabric community.
Thank you.
Hi, @dcvman
Do you have a reference to the steps to configure the report server?
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for providing report server configuration steps. These steps don't include how to use Encrypt=True and TrustServerCertificate=True connections options.
Below is error message which I am receiving when trying to connect to SQL server:
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
2 |