AWS RDS Linked Server not working

0

We have 2 MS SQL server instances:

Instance 1: MS SQL Server Standard Edition - db.r5.large Instance 2: MS SQL Server Web Edition- db.r5.large Both these instances are in the same VPC and they both configured for port 1433

This is the script we used to create the linked server on instance 2:

EXEC master .dbo.sp_addlinkedserver @server = N'IR_Gaming', @srvproduct= N'', @provider= N'SQLNCLI', @datasrc= N'[our domain name for instance 1]' go EXEC master .dbo.sp_addlinkedsrvlogin @rmtsrvname=N'IR_Gaming' ,@useself=N'False' ,@locallogin=NULL,@rmtuser =N'admin',@rmtpassword='*******' go

When we "Test Connection" or try to query the linked server. We get the following errror:

OLE DB provider "MSOLEDBSQL" for linked server "IR_Gaming" returned message "Login timeout expired". OLE DB provider "MSOLEDBSQL" for linked server "IR_Gaming" 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.". Msg 53, Level 16, State 1, Line 0 Named Pipes Provider: Could not open a connection to SQL Server [53].

1 個回答
0
已接受的答案

Just has to add rule in security group

已回答 1 年前
  • Hello, I have the same problem. I tried several rules but none worked. What would be the specific rule for releasing linked server?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南