AWS RDS Linked Server 无法正常工作


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


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

1 Answer

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

profile picture
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions