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
专家
已提问 7 个月前131 查看次数
1 回答
0

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

profile picture
专家
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则