<?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: How to connect to secondary replica of SQL Server AlwaysOn Availability group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032647#M639690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot i had almost the same problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2018 23:34:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-20T23:34:36Z</dc:date>
    <item>
      <title>How to connect to secondary replica of SQL Server AlwaysOn Availability group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032644#M639687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with OLE DB connection which should be established to an SQL Server database which is a secondary replica in AlwayOn Availabilty group (AAG) and woring on read-only mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When connecting to the database the following error occurs:&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQLState: "42000"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL Server error: 978&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The target database ('xxx') is in an availability group and is currently accessible for connections when the application intent is set to read only. For more information about application intent, see SQL Server Books Online.&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following OLE DB connection strings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This one does work with the primary database - &lt;SPAN style="color: #0000ff;"&gt;OLEDB CONNECT TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;SPAN style="color: #993300;"&gt;[Provider=SQLOLEDB.1;Initial Catalog=xxx;User ID=&amp;lt;USER NAME&amp;gt;;Database=xxx;Data Source=&amp;lt;PRIMARY SERVER NAME&amp;gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;This one does not work with the replica even if I add &lt;STRONG&gt;ApplicationIntent=ReadOnly&lt;/STRONG&gt; - &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;OLEDB CONNECT TO&lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;[Provider=SQLOLEDB.1;Initial Catalog=xxx;User ID=&amp;lt;USER NAME&amp;gt;;Database=xxx;ApplicationIntent=ReadOnly;Data Source=&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;SECONDARY SERVER NAME&lt;/SPAN&gt;&amp;gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Playing (adding and removing) with the following settings does not help as well:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server=tcp:&amp;lt;PRIMARY OR SECONDARY SERVER NAME&amp;gt; (with the ports 1433 and 5022 and without them)&lt;/LI&gt;&lt;LI&gt;IntegratedSecurity=SSPI&lt;/LI&gt;&lt;LI&gt;Database=xxx&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I googled a number of resources including&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="https://msdn.microsoft.com/en-us/library/ms130822(v=sql.110).aspx" rel="nofollow"&gt;https://msdn.microsoft.com/en-us/library/ms130822(v=sql.110).aspx&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="jive-link-external-small" href="https://msdn.microsoft.com/en-us/library/hh213417.aspx#ReadOnlyAppIntent" rel="nofollow"&gt;https://msdn.microsoft.com/en-us/library/hh213417.aspx#ReadOnlyAppIntent&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but nothing helps. I'm stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone tried working with a read-only replica in AAG?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 23:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032644#M639687</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2016-02-25T23:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to secondary replica of SQL Server AlwaysOn Availability group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032645#M639688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i had the same problem and have a solution:&lt;/P&gt;&lt;P&gt;First you need to upgrade the OLE DB drivers, install the SQL Native Client 11.0 (available from Microsoft: &lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=36434" title="https://www.microsoft.com/en-us/download/details.aspx?id=36434"&gt;Download Microsoft® ODBC Driver 11 for SQL Server® - Windows from Official Microsoft Download Center&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;This is because of that support for "readonly" was released with SQL Server 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that change the provider to: SQLNCLI11.1 and you need to use &lt;STRONG&gt;;a&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;pplication intent=readonly;&lt;/STRONG&gt; with a [space].&lt;/P&gt;&lt;P&gt;applicationintent is for ODBC.&lt;/P&gt;&lt;P&gt;application intent is for OLEDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032645#M639688</guid>
      <dc:creator />
      <dc:date>2016-05-16T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to secondary replica of SQL Server AlwaysOn Availability group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032646#M639689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I found this at MSDN site already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 07:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032646#M639689</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2016-05-18T07:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to secondary replica of SQL Server AlwaysOn Availability group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032647#M639690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot i had almost the same problem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 23:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-connect-to-secondary-replica-of-SQL-Server-AlwaysOn/m-p/1032647#M639690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T23:34:36Z</dc:date>
    </item>
  </channel>
</rss>

