Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

SQL2008 Linked Server and SQL2012 AG issue.

$
0
0

I have installed SQL Server 2012 Client tools on SQL 2008 box and restarted the instance. When we create linked server from SQL Server 2008 Box using the below script and test, it always brings up the Primary Replica.

When creating the same linked server on a SQL 2012 box and testing, the secondary replica is returned.

EXEC master.dbo.sp_addlinkedserver @server = N'MyTest' ,@srvproduct = N'SQL' ,@provider = N'SQLNCLI11' ,@datasrc = N'Listener_Name' ,@provstr = N'Integrated Security=SSPI;Initial Catalog=dbatest;Data Source=Listener_Name;ApplicationIntent=ReadOnly' ,@catalog = N'dbatest' GO

While testing whether the connection is working and redirecting to Secondary, I use the below and I see it is querying to the Primary.

select * from openquery(MyTest,'select @@servername')

Anyone have any suggestions around what would be useful to check further?

Is this feature incompatible with SQL Server 2008 and will only allow connection to the Primary replica even if Application intent is provided as ReadOnly?


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>