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
ESPERTO
posta 8 mesi fa139 visualizzazioni
1 Risposta
0

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

profile picture
ESPERTO
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande