AWS RDS Linked Server 无法正常工作

0

【以下的问题经过翻译处理】 我们有两个MS SQL服务器实例: 实例1:MS SQL Server Standard Edition - db.r5.large 实例2:MS SQL Server Web Edition- db.r5.large 这两个实例都在同一个VPC中,并且它们都配置为端口1433。

这是我们在实例2上创建联机服务器所使用的脚本:

EXEC master.dbo.sp_addlinkedserver @server = N'IR_Gaming',@srvproduct = N'',@provider = N'SQLNCLI',@datasrc = N'[我们用于实例1的域名]' go EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'IR_Gaming',@useself = N'False',@locallogin = NULL,@rmtuser = N'admin',@rmtpassword = '\ * \ * \ * \ * \ * \ * \ * \ * \ *' go

当我们“测试连接”或尝试查询联机服务器时,我们会收到以下错误:

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].

profile picture
專家
已提問 8 個月前檢視次數 136 次
1 個回答
0

【以下的回答经过翻译处理】 只需在安全组中添加规则即可。

profile picture
專家
已回答 8 個月前

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

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

回答問題指南