Skip to main content

Power BI

New

connect to alwayson secondary replica

Vote (102) Share
Leah Kaplan's profile image

Leah Kaplan on 12 Aug 2015 13:43:56

Can we please get an option to connect to a secondary alwayson replica via the listener? Something equivalent to ApplicationIntent=ReadOnly would be great.

Comments (18)
Leah Kaplan's profile image Profile Picture

34c2ba8a d028-4a6a-88dc-f73e984d8551 on 05 Jul 2020 23:42:27

RE: connect to alwayson secondary replica

Why is this not supported? The Op's point is totally legit. In which scenario would Power BI have non-readonly activity? Please fix thanks

Leah Kaplan's profile image Profile Picture

f7f85ddb 5eb0-4f9a-ad53-381e9812d5f3 on 05 Jul 2020 23:39:31

RE: connect to alwayson secondary replica

It works with OLE DB Connection, but not in "Direct Query" mode.

https://community.powerbi.com/t5/Community-Blog/Refreshing-data-in-Power-BI-from-SQL-Server-Read-only-or/bc-p/606819#M1465

Leah Kaplan's profile image Profile Picture

dce433f5 44c2-4356-9c28-d6cecdaebcfe on 05 Jul 2020 23:31:51

RE: connect to alwayson secondary replica

This needs to be fixed asap. SSRS & SSIS are both able automatically use the listener to pull from the Secondary.

Leah Kaplan's profile image Profile Picture

aa4b7802 864a-4713-be6e-d74992a42c0f on 05 Jul 2020 23:31:50

RE: connect to alwayson secondary replica

especially now that SQL Server Availability Groups support round-robin with multiple secondary read-only queries this is extremely important for large datasets!

Leah Kaplan's profile image Profile Picture

30e1bd6a db74-4d2a-b432-c6ee45c7c3be on 05 Jul 2020 23:09:51

RE: connect to alwayson secondary replica

Enable SQL Server Failover support is NOT the same as ReadOnly support. ReadOnly support will allow the automatic selection of the readonly server in an always-on Availability Group setting. This feature is huge and I'm shocked that it only has 51 votes thus far. It also adds support to one of SQL Server's highly touted features. If Microsoft won't even support their own features, how do they expect other vendors to support their feature? It sets a very poor example.

Leah Kaplan's profile image Profile Picture

aebbbd80 423c-439d-a697-6fbee30b4a82 on 05 Jul 2020 22:55:33

RE: connect to alwayson secondary replica

This does work, but the behaviour is strange. Ideally you would want to connect to the AG Listener and allow the Read-Only routing of the cluster to route you to the available readable secondary. This is not the case (at least in my case). In order to connect to my readable secondary, I have to put the name/ip address of my readable secondary in the server name box and then tick the "enable SQL Server support box". It's great because it connects and I can read. It's not so great if my readable secondary becomes the primary, then I have my reporting and my application workloads both running on it together. Anyone else with similar experience or maybe know what is going wrong?

Leah Kaplan's profile image Profile Picture

b2b81c79 aa11-4465-92bb-d1a14eb4cd48 on 05 Jul 2020 22:54:54

RE: connect to alwayson secondary replica

Checking the box "enable sql server failover support" seemed to do the trick for us.

Leah Kaplan's profile image Profile Picture

cd0630aa dd39-49eb-b4e4-765d8c3d80b1 on 05 Jul 2020 22:48:36

RE: connect to alwayson secondary replica

Can someone confirm this is indeed now supported in Power BI Desktop app using the setting "enable sql server failover support" in the SQL Server Database connection advanced options?

Leah Kaplan's profile image Profile Picture

760e3d6d ca78-4734-9f87-3d414e96df47 on 05 Jul 2020 22:47:18

RE: connect to alwayson secondary replica

'+1 for me, too. This is a frustrating issue

Leah Kaplan's profile image Profile Picture

c74d569f 7e5e-4251-99a3-993faf7495bf on 05 Jul 2020 22:46:42

RE: connect to alwayson secondary replica

This is now implemented as "enable sql server failover support". But I found no information about it what so ever