Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Folks,
I have a SQL Server 2016 database sitting on a VM in Azure with some data that that I am trying to access via Power BI Desktop. I can connect to the database if I select "OK" to use unencrypted data when this screen appears using the exact same connection details further down.
But I am not sure of the setting to use if we want to keep the encryption. From this forum I have seen some information that says to use the ip Address,PortNumber so thought to add TrustServerCertificate=True into the connection string because it is on Azure so I have configured the database so the user logs in using SQL Server Authentication:
With these options selected:
I have included the Trust Server Certivcate option in the PBI Connection:
But the connection gives me an error if I use the semi colon in the connection, or if I use a comma I still get the "connect using unencryption".
Does anyone know how to keep the encryption when connecting in these circumstance?
Thnaks
Binway
Solved! Go to Solution.
Thanks Lydia,
I checked with the Azure Admin and they said that SSL was configured properly so we dug a bit deeper and got it to work with an encrytped connection on my Laptops Power BI Desktop connecting to a SQL Server database on a VM in Azure. There are a few steps to this which I hope I have summarised correctly below and in the correct order.
This completes the set up on the VM Server in Azure but now need to set up the computers with Power BI Desktop that need access to the database. I would expect this to be very few as most users would be coming through the Power BI service and the gateway.
All of this was required to work for us in our environment.
Hope it helps some one else.
Regards
Binway
This is an old post. But a much simpler solution that worked for me when I had the same issue was to create a environment variable.
1. Got o Control Panel > Edit environment variables for your account. Click "New".
2. Add following:
3. Restart Power BI and conenct to yout SQL Server. Voila.
@Binway,
Have you configured SSL encryption for your SQL Server instance? If SSL encription is configured properly in your data source, you can go to File->Options and Settings -> Data Source Settings in Power BI Desktop, select your SQL data source and tick "Encrypt connections".
Regards,
Lydia
Thanks Lydia,
I checked with the Azure Admin and they said that SSL was configured properly so we dug a bit deeper and got it to work with an encrytped connection on my Laptops Power BI Desktop connecting to a SQL Server database on a VM in Azure. There are a few steps to this which I hope I have summarised correctly below and in the correct order.
This completes the set up on the VM Server in Azure but now need to set up the computers with Power BI Desktop that need access to the database. I would expect this to be very few as most users would be coming through the Power BI service and the gateway.
All of this was required to work for us in our environment.
Hope it helps some one else.
Regards
Binway
User | Count |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |