Reprinted: SQL Server linked server is created

Recent data matching database needs to come from another server, execute found written script error:
Message 7202, Level 11, State 2, Line 1
Can not find server '192.XXX' in sys.servers in. Verify that the specified server name is correct. If necessary, execute the stored procedure sp_addlinkedserver to add the server sys.servers.
So the first time you do a database record linked server.
1, found in the database 'Link Service'


Here Insert Picture Description
2, right click and choose New
Here Insert Picture Description
3, fill in the following regular item Here Insert Picture Description
4, linked server security options to fill in the account password
Here Insert Picture Description
5, Rpc server options and Rpc Out, these two values should be set to True
(the default settings are as follows)
Here Insert Picture Description
(revised settings are as follows )
Here Insert Picture Description

 

* The SELECT the FROM [DBMES]. [Database name]. [Dbo]. [Table
Name] ----------------
Disclaimer: This article is CSDN blogger "summer spot purpose" of original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/sam_chen_/article/details/83378357

Guess you like

Origin www.cnblogs.com/lxss/p/11867785.html