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

Unable to create a linked server that points to an availability group listener.

$
0
0

I don't even know if this scenarios is supported or not, I can't find any documentation on it.

I have a couple SQL 2012 servers setup using AlwaysOn Availability Groups.  The listener (SQLAG1) is setup and working as expected with applications.   The 2 machines are in different subnets, so we are using the MultiSubnetFailover=True on the connection strings to ensure that failover works. 

From an SQL 2014 box I want to create a linked server that points at the Listener.   I'm able create the linked server, but it appears like sql server is not using the MultiSubnetFailover=True and it fails to connect.  Here is what I used to create the linked server;

EXEC sp_addlinkedserver 
@server = N'SQLAG1', 
@srvproduct = N'SQL2012', 
@provider = N'SQLNCLI11', 
@datasrc = N'SQLAG1', 
@provstr = N'Provider=SQLNCLI11.1;Data Source=SQLAG1;MultiSubNetFailover=True', 
@catalog = NULL
GO

Do anyone know if this is supported?  if so what it proper way to create the linked server?  

Thanks!!!


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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