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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ