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

답변함 일 년 전
  • Hello, I have the same problem. I tried several rules but none worked. What would be the specific rule for releasing linked server?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인