在SQL Server Management Studio中将数据从一个服务器插入另一个服务器

问题描述 投票:-1回答:1

我想将数据从Server1上的表T1移动到Server2上的表T2,我使用以下查询。

INSERT INTO [Server1].[DB1].[dbo].[T1]
SELECT * FROM [Server2].[DB2].[dbo].[T2]

但它返回以下错误。

OLE DB provider "SQLNCLI11" for linked server "HUZAIFA" returned message "Login 
timeout expired".
OLE DB provider "SQLNCLI11" for linked server "HUZAIFA" 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].  

任何人都可以帮我解决这个问题吗?

sql-server ssms named-pipes linked-server
1个回答
0
投票

你写了

我不知道如何将本地服务器上的登录映射到链接服务器上的登录

但没有它你的连接将无法正常工作

请阅读this并发布用于创建链接服务器的t-sql

© www.soinside.com 2019 - 2024. All rights reserved.