On my testserver SQL Server 2014 i can create a linked server to SQL Azure just fine, however on my production database SQL Server 2012 it does not work.
It adds the link but when i choose test connection an error is shown.
When i add a linked server to another SQL Server it works just as expected. Is there a specific configuration to be made to connect to SQL Azure from SQL Server 2012 (is it even supported?)
Linking:
Microsoft SQL Server 2012 (SP3-CU1) (KB3123299) - 11.0.6518.0 (X64)
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
to:
Microsoft SQL Server 2014 (SP1-CU4) (KB3106660) - 12.0.4436.0 (X64)
Standard Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
Works
Linking
Microsoft SQL Server 2014 (SP1-CU4) (KB3106660) - 12.0.4436.0 (X64)
Standard Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
to
SQL Azure
works
Linking
Microsoft SQL Server 2012 (SP3-CU1) (KB3123299) - 11.0.6518.0 (X64)
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
to
SQL Azure
Does not work, gives the following error:
TITLE: Microsoft SQL Server Management Studio
------------------------------
The test connection to the linked server failed.
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Named Pipes Provider: Could not open a connection to SQL Server [1231].
OLE DB provider "SQLNCLI11" for linked server "***************.DATABASE.WINDOWS.NET" returned message "Login timeout expired".
OLE DB provider "SQLNCLI11" for linked server ""***************.DATABASE.WINDOWS.NET" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found
or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.". (Microsoft SQL Server, Error: 1231)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.6518&EvtSrc=MSSQLServer&EvtID=1231&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
MCTS SQL Server 2005